summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 69b01a44702..47064c103e7 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -437,6 +437,14 @@ class OC {
}
self::initPaths();
+ if (OC_Config::getValue('instanceid', false)) {
+ // \OC\Memcache\Cache has a hidden dependency on
+ // OC_Util::getInstanceId() for namespacing. See #5409.
+ try {
+ self::$loader->setMemoryCache(\OC\Memcache\Factory::createLowLatency('Autoloader'));
+ } catch(\Exception $ex) {
+ }
+ }
OC_Util::isSetLocaleWorking();
// set debug mode if an xdebug session is active