Add 'hash' object cache for installer
[lhc/web/wiklou.git] / includes / installer / Installer.php
index 72e11db..f426081 100644 (file)
@@ -375,6 +375,8 @@ abstract class Installer {
                        CACHE_DB => $emptyCache,
                        CACHE_ANYTHING => $emptyCache,
                        CACHE_MEMCACHED => $emptyCache,
+                       // Set hash object cache (e.g. used in ResourceLoader LESS caching) - bug T113843
+                       'hash' => array( 'class' => 'HashBagOStuff' ),
                );
 
                // Load the installer's i18n.
@@ -538,9 +540,11 @@ abstract class Installer {
                global $wgAutoloadClasses;
                $wgAutoloadClasses = array();
 
+               // @codingStandardsIgnoreStart
                // LocalSettings.php should not call functions, except wfLoadSkin/wfLoadExtensions
                // Define the required globals here, to ensure, the functions can do it work correctly.
                global $wgExtensionDirectory, $wgStyleDirectory;
+               // @codingStandardsIgnoreEnd
 
                MediaWiki\suppressWarnings();
                $_lsExists = file_exists( "$IP/LocalSettings.php" );