dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e29830
)
Use instanceof in ParserCache::getKey to help IDEs
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 10 Jun 2015 21:09:20 +0000
(14:09 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 10 Jun 2015 21:09:20 +0000
(14:09 -0700)
Change-Id: I772f53ee28ade5da499fe05259a17fed5cc52adb
includes/parser/ParserCache.php
patch
|
blob
|
history
diff --git
a/includes/parser/ParserCache.php
b/includes/parser/ParserCache.php
index
98d3f7f
..
16dde0d
100644
(file)
--- a/
includes/parser/ParserCache.php
+++ b/
includes/parser/ParserCache.php
@@
-141,7
+141,7
@@
class ParserCache {
// Determine the options which affect this article
$optionsKey = $this->mMemc->get( $this->getOptionsKey( $article ) );
- if ( $optionsKey
!= fals
e ) {
+ if ( $optionsKey
instanceof CacheTim
e ) {
if ( !$useOutdated && $optionsKey->expired( $article->getTouched() ) ) {
wfIncrStats( "pcache.miss.expired" );
$cacheTime = $optionsKey->getCacheTime();