X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteStats.php;h=33bab6573f481c7a8d8fc9f275e2ba12448c56b9;hb=c30b04958083cfca0f20d63474f00d03a8c03112;hp=5b361b9be73eb47ca0a392a6182aee2e9c67ed36;hpb=9f04548ea98aa36f65b3c397e9834c02dce5b0c2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 5b361b9be7..33bab6573f 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -180,9 +180,10 @@ class SiteStats { * @return int */ static function numberingroup( $group ) { - return ObjectCache::getMainWANInstance()->getWithSetCallback( + $cache = ObjectCache::getMainWANInstance(); + return $cache->getWithSetCallback( wfMemcKey( 'SiteStats', 'groupcounts', $group ), - 3600, + $cache::TTL_HOUR, function ( $oldValue, &$ttl, array &$setOpts ) use ( $group ) { $dbr = wfGetDB( DB_SLAVE );