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:
2e71257
)
Handle missing parser cache keys better in pool counter
author
Chad Horohoe
<chadh@wikimedia.org>
Wed, 19 Nov 2014 19:22:03 +0000
(11:22 -0800)
committer
Chad Horohoe
<chadh@wikimedia.org>
Wed, 19 Nov 2014 19:22:48 +0000
(11:22 -0800)
Change-Id: I493fd1ee5e9ab6c3a49a7f478460cbfe54393ca0
includes/poolcounter/PoolWorkArticleView.php
patch
|
blob
|
history
diff --git
a/includes/poolcounter/PoolWorkArticleView.php
b/includes/poolcounter/PoolWorkArticleView.php
index
5e7e391
..
da20f94
100644
(file)
--- a/
includes/poolcounter/PoolWorkArticleView.php
+++ b/
includes/poolcounter/PoolWorkArticleView.php
@@
-67,7
+67,8
@@
class PoolWorkArticleView extends PoolCounterWork {
$this->parserOptions = $parserOptions;
$this->content = $content;
$this->cacheKey = ParserCache::singleton()->getKey( $page, $parserOptions );
- parent::__construct( 'ArticleView', $this->cacheKey . ':revid:' . $revid );
+ $keyPrefix = $this->cacheKey ?: wfMemcKey( 'articleview', 'missingcachekey' );
+ parent::__construct( 'ArticleView', $keyPrefix . ':revid:' . $revid );
}
/**