mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Only write-back on cache miss.
This commit is contained in:
parent
f5e2b92688
commit
dde832b76c
1 changed files with 3 additions and 3 deletions
|
|
@ -133,10 +133,10 @@ class Autoloader {
|
|||
$pathsToRequire[] = $fullPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->memoryCache) {
|
||||
$this->memoryCache->set($class, $pathsToRequire, 60); // cache 60 sec
|
||||
if ($this->memoryCache) {
|
||||
$this->memoryCache->set($class, $pathsToRequire, 60); // cache 60 sec
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($pathsToRequire as $fullPath) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue