* @ingroup FileAbstraction
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\DBUnexpectedError;
/**
return false; // no description page
}
- $cache = ObjectCache::getMainWANInstance();
+ $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
return $cache->getWithSetCallback(
$this->repo->getLocalCacheKey(
- 'RemoteFileDescription',
- 'url',
+ 'ForeignFileDescription',
$lang->getCode(),
- $this->getName(),
+ md5( $this->getName() ),
$touched
),
$this->repo->descriptionCacheExpiry ?: $cache::TTL_UNCACHEABLE,