From: Krinkle Date: Tue, 17 Jul 2018 07:01:17 +0000 (+0000) Subject: Revert "Convert Title::getTitleCache() to using MapCacheLRU" X-Git-Tag: 1.34.0-rc.0~4744^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22http:/wikimediafoundation.org/fundraising/%7B%7B%20url_for%28%27user_settings%27%2C%20userid=session.userid%29%20%7D%7D?a=commitdiff_plain;h=3648e5683c0ff11c039891aab4e92353030d652e;p=lhc%2Fweb%2Fwiklou.git Revert "Convert Title::getTitleCache() to using MapCacheLRU" This reverts commit 7a25cd388c8adcce60f4c055295baed71e730616. Bug: T199763 Change-Id: I276b833d75e93328a188056bf1eb2491461d6d53 --- diff --git a/includes/Title.php b/includes/Title.php index b583554ab4..8586ad762d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; }