Http::getProxy() method to get proxy configuration
[lhc/web/wiklou.git] / includes / SiteStats.php
index 5b361b9..33bab65 100644 (file)
@@ -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 );