Index: trunk/phase3/includes/ParserCache.php |
— | — | @@ -9,9 +9,9 @@ |
10 | 10 | $key = "$wgDBname:pcache:idhash:$pageid-$hash"; |
11 | 11 | return $key; |
12 | 12 | } |
13 | | - |
| 13 | + |
14 | 14 | function get( &$article, &$user ) { |
15 | | - global $wgMemc; |
| 15 | + global $wgMemc, $wgCacheEpoch; |
16 | 16 | $fname = "ParserCache::get"; |
17 | 17 | wfProfileIn( $fname ); |
18 | 18 | |
— | — | @@ -21,7 +21,8 @@ |
22 | 22 | $value = $wgMemc->get( $key ); |
23 | 23 | if ( $value ) { |
24 | 24 | # Delete if article has changed since the cache was made |
25 | | - if ( $value->getTouched() != $article->getTouched() ) { |
| 25 | + $touched = $article->getTouched(); |
| 26 | + if ( $value->getTouched() != $touched || $touched > $wgCacheEpoch ) { |
26 | 27 | $wgMemc->delete( $key ); |
27 | 28 | $value = false; |
28 | 29 | } |