diff --git a/src/Composer/Cache.php b/src/Composer/Cache.php index 4fae9be33..dfecef010 100644 --- a/src/Composer/Cache.php +++ b/src/Composer/Cache.php @@ -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');