Revert "Convert Title::getTitleCache() to using MapCacheLRU"

This reverts commit 7a25cd388c.

Bug: T199763
Change-Id: I276b833d75e93328a188056bf1eb2491461d6d53
This commit is contained in:
Krinkle 2018-07-17 07:01:17 +00:00
parent 7a25cd388c
commit 3648e5683c

View file

@ -37,7 +37,7 @@ use MediaWiki\MediaWikiServices;
* and does not rely on global state or the database.
*/
class Title implements LinkTarget {
/** @var MapCacheLRU */
/** @var HashBagOStuff */
static private $titleCache = null;
/**
@ -371,11 +371,11 @@ class Title implements LinkTarget {
}
/**
* @return MapCacheLRU
* @return HashBagOStuff
*/
private static function getTitleCache() {
if ( self::$titleCache == null ) {
self::$titleCache = new MapCacheLRU( self::CACHE_MAX );
self::$titleCache = new HashBagOStuff( [ 'maxKeys' => self::CACHE_MAX ] );
}
return self::$titleCache;
}