1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-05 17:22:56 +02:00

refactor: remove useless actual args to clearstatcache (#3503)

This commit is contained in:
Dag
2023-07-06 19:39:40 +02:00
committed by GitHub
parent 5e22459eb6
commit 46f0e97c73

View File

@ -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) {