Add 'hash' object cache for installer
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 26 Sep 2015 22:43:27 +0000 (00:43 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 26 Sep 2015 22:54:39 +0000 (00:54 +0200)
It's used to e.g. cache less files in ResourceLoader, which would throw
an exception if the installer is used (while it requests the installer
styles), if the object cache isn't defined.

Follow up: I1ff61153ddb9

Bug: T113843
Change-Id: I1c1938b3fac395dda5b42dd68b675a67bdd30261

includes/installer/Installer.php

index d98ca79..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.