mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
in case the cache cannot be initialized within the autoloader we just shoul not use it
This commit is contained in:
parent
2e79aab0ce
commit
5ae4d67540
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue