Skip to content

Instantly share code, notes, and snippets.

@oschaaf
Created July 13, 2016 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oschaaf/7a6a8d5197be1d4a598eb01100e62d89 to your computer and use it in GitHub Desktop.
Save oschaaf/7a6a8d5197be1d4a598eb01100e62d89 to your computer and use it in GitHub Desktop.
disable cache cleaning hack
diff --git a/pagespeed/kernel/cache/file_cache.cc b/pagespeed/kernel/cache/file_cache.cc
index 3951c02..f595832 100644
--- a/pagespeed/kernel/cache/file_cache.cc
+++ b/pagespeed/kernel/cache/file_cache.cc
@@ -304,6 +304,7 @@ void FileCache::CleanWithLocking(int64 next_clean_time_ms) {
}
bool FileCache::ShouldClean(int64* suggested_next_clean_time_ms) {
+ return false;
bool to_return = false;
const int64 now_ms = cache_policy_->timer->NowMs();
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment