FileCache: Ignore compression suffix when checking cache made of multiple files
refs #2917
This commit is contained in:
parent
7b7bfb5a5d
commit
6702ccb2a7
|
@ -201,6 +201,11 @@ class FileCache
|
|||
return false;
|
||||
}
|
||||
|
||||
if (preg_match('/([0-9a-f]{8}-[0-9a-f]{8}-[0-9a-f]{8})-\w+/i', $match, $matches)) {
|
||||
// Removes compression suffixes as our custom algorithm can't handle compressed cache files anyway
|
||||
$match = $matches[1];
|
||||
}
|
||||
|
||||
$etag = self::etagForFiles($files);
|
||||
return $match === $etag ? $etag : false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue