mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 13:20:12 +02:00
[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:
@@ -27,6 +27,7 @@ class FileCache implements CacheInterface {
|
||||
|
||||
public function getTime(){
|
||||
$cacheFile = $this->getCacheFile();
|
||||
clearstatcache(false, $cacheFile);
|
||||
if(file_exists($cacheFile)) {
|
||||
return filemtime($cacheFile);
|
||||
}
|
||||
|
Reference in New Issue
Block a user