[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:
parent
422c125d8e
commit
ffb8b82c73
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class FileCache implements CacheInterface {
|
||||||
|
|
||||||
public function getTime(){
|
public function getTime(){
|
||||||
$cacheFile = $this->getCacheFile();
|
$cacheFile = $this->getCacheFile();
|
||||||
|
clearstatcache(false, $cacheFile);
|
||||||
if(file_exists($cacheFile)) {
|
if(file_exists($cacheFile)) {
|
||||||
return filemtime($cacheFile);
|
return filemtime($cacheFile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue