* (bug 21161) Changing $wgCaCacheEpoch now always invalidates file cache
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 21 Oct 2009 11:42:10 +0000 (11:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 21 Oct 2009 11:42:10 +0000 (11:42 +0000)
Based on a patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6678

RELEASE-NOTES
includes/HTMLFileCache.php

index 23df147..f89cc3c 100644 (file)
@@ -579,6 +579,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 20911) Installer failed to create a SQLite database
 * (bug 20847) Deprecated deprecated akeytt() removed in wikibits.js leaving
   dummy
+* (bug 21161) Changing $wgCaCacheEpoch now always invalidates file cache
 
 == API changes in 1.16 ==
 
index 4611042..53af1e6 100644 (file)
@@ -106,7 +106,6 @@ class HTMLFileCache {
                global $wgCacheEpoch;
 
                if( !$this->isFileCached() ) return false;
-               if( !$timestamp ) return true; // should be invalidated on change
 
                $cachetime = $this->fileCacheTime();
                $good = $timestamp <= $cachetime && $wgCacheEpoch <= $cachetime;