]> source.dussan.org Git - nextcloud-server.git/commitdiff
in case the cache cannot be initialized within the autoloader we just shoul not use it
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 18 Sep 2013 09:06:00 +0000 (11:06 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 18 Sep 2013 09:06:00 +0000 (11:06 +0200)
lib/autoloader.php

index 01841f831becb72a546c8787ce2400cc9d9c2b2f..2c19350e90488f0cb5b683a968924057350571e9 100644 (file)
@@ -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);