1
0
Fork 0

Touch access time only when reading from cache

pull/3962/head
Josh Di Fabio 2015-04-23 16:08:03 +01:00
parent 2e73811211
commit 051b7bd44b
1 changed files with 1 additions and 1 deletions

View File

@ -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');