From 54bc266fe0f2fcf478c53bc13c0fe4850b708628 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 30 May 2004 08:18:40 +0000 Subject: [PATCH] Extra debugging info and a typo fix --- includes/ParserCache.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/ParserCache.php b/includes/ParserCache.php index 8066e4f57e..b96bff1121 100644 --- a/includes/ParserCache.php +++ b/includes/ParserCache.php @@ -18,11 +18,15 @@ class ParserCache $hash = $user->getPageRenderingHash(); $pageid = intval( $article->getID() ); $key = $this->getKey( $article, $user ); + wfDebug( "Trying parser cache $key\n" ); $value = $wgMemc->get( $key ); if ( $value ) { + wfDebug( "Found.\n" ); # Delete if article has changed since the cache was made $touched = $article->getTouched(); - if ( $value->getCacheTime() <= $touched || $value->getCacheTime < $wgCacheEpoch ) { + $cacheTime = $value->getCacheTime(); + if ( $value->getCacheTime() <= $touched || $cacheTime < $wgCacheEpoch ) { + wfDebug( "Key expired, touched $touched, epoch $wgCacheEpoch, cached $cacheTime\n" ); $wgMemc->delete( $key ); $value = false; } -- 2.20.1