commiting working cache code, along with temp code for refreshing all caches