aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ParserCache.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2004-11-25 22:02:30 +0000
committerBrion Vibber <brion@users.mediawiki.org>2004-11-25 22:02:30 +0000
commite39dd4532c5fec33e0be2e327aad7378fcaeb277 (patch)
tree2d7bee50cc6783cdb91d8d9046d134cfdbbc138b /includes/ParserCache.php
parent2e8d866b9d36d1d84dde4dd7a88f650ad6a4262c (diff)
downloadmediawikicore-e39dd4532c5fec33e0be2e327aad7378fcaeb277.tar.gz
mediawikicore-e39dd4532c5fec33e0be2e327aad7378fcaeb277.zip
(bug 934) List each category on a page only once.
Dan Keshet's patch (http://bugzilla.wikipedia.org/attachment.cgi?id=134&action=view) plus an added version check on parser cache objects, to automatically discard cached objects using the incompatible older format.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6385
Diffstat (limited to 'includes/ParserCache.php')
-rw-r--r--includes/ParserCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/ParserCache.php b/includes/ParserCache.php
index fce8ed33cff5..00ed00305853 100644
--- a/includes/ParserCache.php
+++ b/includes/ParserCache.php
@@ -43,7 +43,7 @@ class ParserCache {
$canCache = $article->checkTouched();
$cacheTime = $value->getCacheTime();
$touched = $article->mTouched;
- if ( !$canCache || $value->getCacheTime() <= $touched || $cacheTime < $wgCacheEpoch ) {
+ if ( !$canCache || $value->expired( $touched ) ) {
if ( !$canCache ) {
wfDebug( "Invalid cached redirect, touched $touched, epoch $wgCacheEpoch, cached $cacheTime\n" );
} else {