add clearCacheAndResetCacheMisses function