mirror of https://github.com/danoloan10/rss-bridge
refactor: remove useless actual args to clearstatcache (#3503)
This commit is contained in:
parent
5e22459eb6
commit
46f0e97c73
|
@ -49,8 +49,10 @@ class FileCache implements CacheInterface
|
|||
|
||||
public function getTime(): ?int
|
||||
{
|
||||
// https://www.php.net/manual/en/function.clearstatcache.php
|
||||
clearstatcache();
|
||||
|
||||
$cacheFile = $this->getCacheFile();
|
||||
clearstatcache(false, $cacheFile);
|
||||
if (file_exists($cacheFile)) {
|
||||
$time = filemtime($cacheFile);
|
||||
if ($time !== false) {
|
||||
|
|
Loading…
Reference in New Issue