X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteStats.php;h=6ce1aed814022e036ee0e06b50b8e6943f5f222d;hb=37df741514;hp=d253805589b51471cd3bef86aae9b61ad08b6495;hpb=3f7b35adc5136623de5961701e075443ed870aae;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteStats.php b/includes/SiteStats.php index d253805589..6ce1aed814 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -189,9 +189,9 @@ class SiteStats { * @return int */ static function numberingroup( $group ) { - $cache = ObjectCache::getMainWANInstance(); + $cache = MediaWikiServices::getInstance()->getMainWANObjectCache(); return $cache->getWithSetCallback( - wfMemcKey( 'SiteStats', 'groupcounts', $group ), + $cache->makeKey( 'SiteStats', 'groupcounts', $group ), $cache::TTL_HOUR, function ( $oldValue, &$ttl, array &$setOpts ) use ( $group ) { $dbr = wfGetDB( DB_REPLICA );