mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 08:07:33 +02:00
fix: extract duplicate config loading (#4242)
Also fix a problem with bin/cache-prune and FileCache and its enable_purge option
This commit is contained in:
@@ -97,8 +97,10 @@ class FileCache implements CacheInterface
|
||||
}
|
||||
$expiration = $item['expiration'] ?? time();
|
||||
if ($expiration === 0 || $expiration > time()) {
|
||||
// Cached forever, or not expired yet
|
||||
continue;
|
||||
}
|
||||
// Expired, so delete file
|
||||
unlink($cacheFile);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user