+ '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' )
+ );
+ },
+