From fd5b9ebd87c5fe61b93f88125c7708732283b63c Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 21 Oct 2009 11:42:10 +0000 Subject: [PATCH] * (bug 21161) Changing $wgCaCacheEpoch now always invalidates file cache Based on a patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6678 --- RELEASE-NOTES | 1 + includes/HTMLFileCache.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 23df147fe6..f89cc3ce60 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/HTMLFileCache.php b/includes/HTMLFileCache.php index 4611042901..53af1e6e12 100644 --- a/includes/HTMLFileCache.php +++ b/includes/HTMLFileCache.php @@ -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; -- 2.20.1