Index: trunk/phase3/includes/ParserCache.php |
— | — | @@ -18,11 +18,15 @@ |
19 | 19 | $hash = $user->getPageRenderingHash(); |
20 | 20 | $pageid = intval( $article->getID() ); |
21 | 21 | $key = $this->getKey( $article, $user ); |
| 22 | + wfDebug( "Trying parser cache $key\n" ); |
22 | 23 | $value = $wgMemc->get( $key ); |
23 | 24 | if ( $value ) { |
| 25 | + wfDebug( "Found.\n" ); |
24 | 26 | # Delete if article has changed since the cache was made |
25 | 27 | $touched = $article->getTouched(); |
26 | | - if ( $value->getCacheTime() <= $touched || $value->getCacheTime < $wgCacheEpoch ) { |
| 28 | + $cacheTime = $value->getCacheTime(); |
| 29 | + if ( $value->getCacheTime() <= $touched || $cacheTime < $wgCacheEpoch ) { |
| 30 | + wfDebug( "Key expired, touched $touched, epoch $wgCacheEpoch, cached $cacheTime\n" ); |
27 | 31 | $wgMemc->delete( $key ); |
28 | 32 | $value = false; |
29 | 33 | } |