Skip to content
Snippets Groups Projects
Commit dde832b7 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Only write-back on cache miss.

parent f5e2b926
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment