Created
July 13, 2016 09:40
-
-
Save oschaaf/7a6a8d5197be1d4a598eb01100e62d89 to your computer and use it in GitHub Desktop.
disable cache cleaning hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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