diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-18 11:06:00 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-18 11:06:00 +0200 |
commit | 5ae4d675406b310df0940c8b9a43dcf556010e91 (patch) | |
tree | ce285c9f40bbe933dc4f3a73951cd9963e57ac23 /lib/autoloader.php | |
parent | 2e79aab0ce7ec9fa88ccbafd01e82574b93514f9 (diff) | |
download | nextcloud-server-5ae4d675406b310df0940c8b9a43dcf556010e91.tar.gz nextcloud-server-5ae4d675406b310df0940c8b9a43dcf556010e91.zip |
in case the cache cannot be initialized within the autoloader we just shoul not use it
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php index 01841f831be..2c19350e904 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -117,7 +117,11 @@ class Autoloader { // Does this PHP have an in-memory cache? We cache the paths there if ($this->constructingMemoryCache && !$this->memoryCache) { $this->constructingMemoryCache = false; - $this->memoryCache = \OC\Memcache\Factory::createLowLatency('Autoloader'); + try { + $this->memoryCache = \OC\Memcache\Factory::createLowLatency('Autoloader'); + } catch(\Exception $ex) { + // no caching then - fine with me + } } if ($this->memoryCache) { $pathsToRequire = $this->memoryCache->get($class); |