And ObjectCache::getMainWANInstance() while we're at it.
Change-Id: Ib22bd134c3faa56f8d8f111bb9ed99d826cbed40
* @see http://exif.org/Exif2-2.PDF The Exif 2.2 specification
* @file
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Timestamp\TimestampException;
/**
* @since 1.23
*/
public function fetchExtendedMetadata( File $file ) {
- $cache = ObjectCache::getMainWANInstance();
+ $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
// If revision deleted, exit immediately
if ( $file->isDeleted( File::DELETED_FILE ) ) {
return [];
}
- $cacheKey = wfMemcKey(
+ $cacheKey = $cache->makeKey(
'getExtendedMetadata',
$this->getLanguage()->getCode(),
(int)$this->singleLang,