X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FServiceWiring.php;h=d048007c3a999d4dcf7d9dbeaac5d3194ea275d2;hb=cd46a2ba99bdef799eb4ae98b7bbe607ea47bc52;hp=2dfcc42b268205a3cb84ac566e7831edf16a1eea;hpb=75e693d5a4d80a9e12ccffd3c7074e279432d9d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index 2dfcc42b26..d048007c3a 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -287,6 +287,17 @@ return [ return ObjectFactory::constructClassInstance( $conf['class'], [ $conf ] ); }, + 'ParserCache' => function ( MediaWikiServices $services ) { + $config = $services->getMainConfig(); + $cache = ObjectCache::getInstance( $config->get( 'ParserCacheType' ) ); + wfDebugLog( 'caches', 'parser: ' . get_class( $cache ) ); + + return new ParserCache( + $cache, + $config->get( 'CacheEpoch' ) + ); + }, + 'LinkCache' => function ( MediaWikiServices $services ) { return new LinkCache( $services->getTitleFormatter(),