Change-Id: I150011d6d2f596fb4edb9b52ed09ef2951ce6d1e
},
'SiteLookup' => function( MediaWikiServices $services ) {
- // Use the default SiteStore as the SiteLookup implementation for now
- return $services->getSiteStore();
+ $cacheFile = $services->getMainConfig()->get( 'SitesCacheFile' );
+
+ if ( $cacheFile !== false ) {
+ return new FileBasedSiteLookup( $cacheFile );
+ } else {
+ // Use the default SiteStore as the SiteLookup implementation for now
+ return $services->getSiteStore();
+ }
},
'ConfigFactory' => function( MediaWikiServices $services ) {