},
array(
'checkKeys' => array( wfMemcKey( 'active-tags' ) ),
- 'lockTSE' => INF
+ 'lockTSE' => INF,
+ 'pcTTL' => 30
)
);
}
},
array(
'checkKeys' => array( wfMemcKey( 'valid-tags-db' ) ),
- 'lockTSE' => INF
+ 'lockTSE' => INF,
+ 'pcTTL' => 30
)
);
}
},
array(
'checkKeys' => array( wfMemcKey( 'valid-tags-hook' ) ),
- 'lockTSE' => INF
+ 'lockTSE' => INF,
+ 'pcTTL' => 30
)
);
}
* @return array Array of string => int
*/
public static function tagUsageStatistics() {
- static $cachedStats = null;
-
- // Process cache to avoid I/O and repeated regens during holdoff
- if ( $cachedStats !== null ) {
- return $cachedStats;
- }
-
$fname = __METHOD__;
- $cachedStats = ObjectCache::getMainWANInstance()->getWithSetCallback(
+ return ObjectCache::getMainWANInstance()->getWithSetCallback(
wfMemcKey( 'change-tag-statistics' ),
300,
function ( $oldValue, &$ttl, array &$setOpts ) use ( $fname ) {
},
array(
'checkKeys' => array( wfMemcKey( 'change-tag-statistics' ) ),
- 'lockTSE' => INF
+ 'lockTSE' => INF,
+ 'pcTTL' => 30
)
);
-
- return $cachedStats;
}
/**