dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Pass $context to 'GetPreferences' hook"
[lhc/web/wiklou.git]
/
includes
/
changes
/
ChangesFeed.php
diff --git
a/includes/changes/ChangesFeed.php
b/includes/changes/ChangesFeed.php
index
df964e0
..
7ac8cd0
100644
(file)
--- a/
includes/changes/ChangesFeed.php
+++ b/
includes/changes/ChangesFeed.php
@@
-82,10
+82,11
@@
class ChangesFeed {
return null;
}
return null;
}
+ $cache = ObjectCache::getMainWANInstance();
$optionsHash = md5( serialize( $opts->getAllValues() ) ) . $wgRenderHashAppend;
$optionsHash = md5( serialize( $opts->getAllValues() ) ) . $wgRenderHashAppend;
- $timekey =
wfMemc
Key(
+ $timekey =
$cache->make
Key(
$this->type, $this->format, $wgLang->getCode(), $optionsHash, 'timestamp' );
$this->type, $this->format, $wgLang->getCode(), $optionsHash, 'timestamp' );
- $key =
wfMemc
Key( $this->type, $this->format, $wgLang->getCode(), $optionsHash );
+ $key =
$cache->make
Key( $this->type, $this->format, $wgLang->getCode(), $optionsHash );
FeedUtils::checkPurge( $timekey, $key );
FeedUtils::checkPurge( $timekey, $key );