Touch access time only when reading from cache

main
Josh Di Fabio 9 years ago
parent 2e73811211
commit 051b7bd44b

@ -136,7 +136,7 @@ class Cache
{
$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
if ($this->enabled && file_exists($this->root . $file)) {
touch($this->root . $file);
touch($this->root . $file, filemtime($this->root . $file), time());
if ($this->io->isDebug()) {
$this->io->writeError('Reading '.$this->root . $file.' from cache');

Loading…
Cancel
Save