diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-11-01 05:35:34 -0700 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-11-01 05:35:34 -0700 |
commit | 06b42f97886f09ca9527a00e54741fcce511debc (patch) | |
tree | 2e565d2c4f629368547818e52ef71377ab8b238e /lib/base.php | |
parent | eb0ecaa13c7494aa38719e67e6416d1a09fbaeab (diff) | |
parent | c85cc13d1ab926e6b75728ff45b84f4a53a724af (diff) | |
download | nextcloud-server-06b42f97886f09ca9527a00e54741fcce511debc.tar.gz nextcloud-server-06b42f97886f09ca9527a00e54741fcce511debc.zip |
Merge pull request #5443 from owncloud/fix-autoloader-caching
Remove Autoloader Cache Hack. Do not use Cache on Install.
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
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 |