Only write-back on cache miss.
This commit is contained in:
parent
f5e2b92688
commit
dde832b76c
|
@ -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 New Issue