Http::getProxy() method to get proxy configuration
[lhc/web/wiklou.git] / includes / SiteStats.php
index b84d2bf..33bab65 100644 (file)
@@ -180,13 +180,14 @@ 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 );
 
-                               $setOpts += $dbr->getCacheSetOptions();
+                               $setOpts += Database::getCacheSetOptions( $dbr );
 
                                return $dbr->selectField(
                                        'user_groups',