Only write-back on cache miss.

This commit is contained in:
Andreas Fischer 2013-10-21 15:35:52 +02:00
parent f5e2b92688
commit dde832b76c
1 changed files with 3 additions and 3 deletions

View File

@ -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) {