$stats = RequestContext::getMain()->getStats();
$cache = ObjectCache::newAccelerator( CACHE_ANYTHING );
- $key = wfGlobalCacheKey(
+ $key = $cache->makeGlobalKey(
'resourceloader',
'filter',
$filter,
$vars = $this->getLessVars( $context );
ksort( $vars );
$varsHash = hash( 'md4', serialize( $vars ) );
- $cacheKey = wfGlobalCacheKey( 'LESS', $fileName, $varsHash );
+ $cacheKey = $cache->makeGlobalKey( 'LESS', $fileName, $varsHash );
$cachedCompile = $cache->get( $cacheKey );
// If we got a cached value, we have to validate it by getting a
protected function validateScriptFile( $fileName, $contents ) {
if ( $this->getConfig()->get( 'ResourceLoaderValidateJS' ) ) {
// Try for cache hit
- // Use CACHE_ANYTHING since parsing JS is much slower than a DB query
- $key = wfMemcKey(
+ $cache = ObjectCache::getLocalClusterInstance();
+ $key = $cache->makeKey(
'resourceloader',
'jsparse',
self::$parseCacheVersion,
md5( $contents )
);
- $cache = wfGetCache( CACHE_ANYTHING );
$cacheEntry = $cache->get( $key );
if ( is_string( $cacheEntry ) ) {
return $cacheEntry;