Merge pull request #23484 from owncloud/if-class-is-already-loaded-dont-load-it-again
Dont double load class
This commit is contained in:
commit
460bafea8a
|
@ -164,6 +164,10 @@ class Autoloader {
|
|||
$pathsToRequire = $this->memoryCache->get($class);
|
||||
}
|
||||
|
||||
if(class_exists($class, false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!is_array($pathsToRequire)) {
|
||||
// No cache or cache miss
|
||||
$pathsToRequire = array();
|
||||
|
|
Loading…
Reference in New Issue