X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fchanges%2FChangesFeed.php;h=7ac8cd0ed05d0acb3ed889d399a65da39d16a52d;hb=55cb4d0065f625d074db50524525f9d28fee3ff8;hp=df964e0a2b0fc38e1ca2dca91d97bc325c813c56;hpb=d6276525455e6a00fffc90229ef81a1fc8feaa25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/ChangesFeed.php b/includes/changes/ChangesFeed.php index df964e0a2b..7ac8cd0ed0 100644 --- a/includes/changes/ChangesFeed.php +++ b/includes/changes/ChangesFeed.php @@ -82,10 +82,11 @@ class ChangesFeed { return null; } + $cache = ObjectCache::getMainWANInstance(); $optionsHash = md5( serialize( $opts->getAllValues() ) ) . $wgRenderHashAppend; - $timekey = wfMemcKey( + $timekey = $cache->makeKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash, 'timestamp' ); - $key = wfMemcKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash ); + $key = $cache->makeKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash ); FeedUtils::checkPurge( $timekey, $key );