Cache: on equal mtime also for equal size before keeping ETag, at least makes Unit Test happy

This commit is contained in:
Arthur Schiwon 2013-03-26 23:42:00 +01:00
parent 3d29a82150
commit 78c694b6ee
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ class Scanner {
}
}
if($cacheData = $this->cache->get($file)) {
if ($data['mtime'] === $cacheData['mtime']) {
if ($data['mtime'] === $cacheData['mtime'] &&
$data['size'] === $cacheData['size']) {
$data['etag'] = $cacheData['etag'];
}
}