Revert "Convert Title::getTitleCache() to using MapCacheLRU"
This reverts commit 7a25cd388c.
Bug: T199763
Change-Id: I276b833d75e93328a188056bf1eb2491461d6d53
This commit is contained in:
parent
7a25cd388c
commit
3648e5683c
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue