[FileCache] reseting cached file stat result to have correct getTime() result (#792)

* [FileCache] reseting cached file stat result to have correct getTime() result
This commit is contained in:
Eugene Molotov 2018-08-26 00:00:51 +05:00 committed by Teromene
parent 422c125d8e
commit ffb8b82c73

View file

@ -27,6 +27,7 @@ class FileCache implements CacheInterface {
public function getTime(){
$cacheFile = $this->getCacheFile();
clearstatcache(false, $cacheFile);
if(file_exists($cacheFile)) {
return filemtime($cacheFile);
}