@@ 160-168 (lines=9) @@ | ||
157 | "Parser options key expired, touched " . $article->getTouched() |
|
158 | . ", epoch $wgCacheEpoch, cached $cacheTime\n" ); |
|
159 | return false; |
|
160 | } elseif ( !$useOutdated && $optionsKey->isDifferentRevision( $article->getLatest() ) ) { |
|
161 | wfIncrStats( "pcache.miss.revid" ); |
|
162 | $revId = $article->getLatest(); |
|
163 | $cachedRevId = $optionsKey->getCacheRevisionId(); |
|
164 | wfDebugLog( "ParserCache", |
|
165 | "ParserOutput key is for an old revision, latest $revId, cached $cachedRevId\n" |
|
166 | ); |
|
167 | return false; |
|
168 | } |
|
169 | ||
170 | // $optionsKey->mUsedOptions is set by save() by calling ParserOutput::getUsedOptions() |
|
171 | $usedOptions = $optionsKey->mUsedOptions; |
|
@@ 240-248 (lines=9) @@ | ||
237 | "ParserOutput key expired, touched $touched, " |
|
238 | . "epoch $wgCacheEpoch, cached $cacheTime\n" ); |
|
239 | $value = false; |
|
240 | } elseif ( !$useOutdated && $value->isDifferentRevision( $article->getLatest() ) ) { |
|
241 | wfIncrStats( "pcache.miss.revid" ); |
|
242 | $revId = $article->getLatest(); |
|
243 | $cachedRevId = $value->getCacheRevisionId(); |
|
244 | wfDebugLog( "ParserCache", |
|
245 | "ParserOutput key is for an old revision, latest $revId, cached $cachedRevId\n" |
|
246 | ); |
|
247 | $value = false; |
|
248 | } elseif ( |
|
249 | Hooks::run( 'RejectParserCacheValue', [ $value, $wikiPage, $popts ] ) === false |
|
250 | ) { |
|
251 | wfIncrStats( 'pcache.miss.rejected' ); |