X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FServiceWiring.php;h=d048007c3a999d4dcf7d9dbeaac5d3194ea275d2;hb=cd4130790a4a72de7c5b3a81399de0c3f0c66d03;hp=2dfcc42b268205a3cb84ac566e7831edf16a1eea;hpb=26083805d5c5e47198e8a8ed9f7058f07be64132;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(),