/** @var FileContentsHasher */
private static $instance;
- /**
- * Constructor.
- */
public function __construct() {
$this->cache = ObjectCache::getLocalServerInstance( 'hash' );
}
return false;
}
- $cacheKey = wfGlobalCacheKey( __CLASS__, $filePath, $mtime, $algo );
+ $cacheKey = $this->cache->makeGlobalKey( __CLASS__, $filePath, $mtime, $algo );
$hash = $this->cache->get( $cacheKey );
if ( $hash ) {