return parent::getApproximateLagStatus();
}
- $key = wfGlobalCacheKey( 'mysql-lag', $this->getServer() );
+ $key = $this->srvCache->makeGlobalKey( 'mysql-lag', $this->getServer() );
$approxLag = $this->srvCache->get( $key );
if ( !$approxLag ) {
$approxLag = parent::getApproximateLagStatus();
}
private function getLagTimeCacheKey() {
- # Lag is per-server, not per-DB, so key on the master DB name
- return wfGlobalCacheKey( 'lag-times', $this->parent->getServerName( 0 ) );
+ // Lag is per-server, not per-DB, so key on the master DB name
+ return $this->srvCache->makeGlobalKey( 'lag-times', $this->parent->getServerName( 0 ) );
}
}
$cache = ObjectCache::getLocalClusterInstance();
# Make sure the user does not exist already
- $lock = $cache->getScopedLock( wfGlobalCacheKey( 'account', md5( $this->mUsername ) ) );
+ $lock = $cache->getScopedLock( $cache->makeGlobalKey( 'account', md5( $this->mUsername ) ) );
if ( !$lock ) {
return Status::newFatal( 'usernameinprogress' );
} elseif ( $u->idForName( User::READ_LOCKING ) ) {
return false;
}
- $cacheKey = wfGlobalCacheKey( __CLASS__, $filePath, $mtime, $algo );
+ $cacheKey = $this->cache->makeGlobalKey( __CLASS__, $filePath, $mtime, $algo );
$hash = $this->cache->get( $cacheKey );
if ( $hash ) {