Skip to content
Snippets Groups Projects
Commit dc92f603 authored by David Maus's avatar David Maus Committed by Demian Katz
Browse files

Factor in file modification time in hash key generation

* VuFind/Config/Reader/CacheDecorator.php (fromFile): Factor in file
modification time in hash key generation.
parent 532798fc
No related merge requests found
......@@ -81,7 +81,8 @@ class CacheDecorator implements ReaderInterface
*/
public function fromFile ($filename)
{
$key = $this->generateKey($filename);
$mtime = @filemtime(realpath($filename));
$key = $this->generateKey($mtime . $filename);
if ($this->storage->hasItem($key)) {
return $this->storage->getItem($key);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment