diff options
author | 2023-09-24 20:53:07 +0200 | |
---|---|---|
committer | 2023-09-24 20:53:07 +0200 | |
commit | 857e908929ef26da41646c04804cbd4aa106ec52 (patch) | |
tree | c3c13fae4ef0adaa2861a2fe8abf9aad1c8b53ff /caches/FileCache.php | |
parent | f321f000c170c45aadd750bddd25d5074b4e281f (diff) | |
download | rss-bridge-2023-09-24.tar.gz rss-bridge-2023-09-24.tar.zst rss-bridge-2023-09-24.zip |
chore: prepare 2023-09-24 release (#3703)2023-09-24
Diffstat (limited to 'caches/FileCache.php')
-rw-r--r-- | caches/FileCache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/caches/FileCache.php b/caches/FileCache.php index 703fb6db..1ae88704 100644 --- a/caches/FileCache.php +++ b/caches/FileCache.php @@ -36,7 +36,7 @@ class FileCache implements CacheInterface $this->delete($key); return $default; } - $expiration = $item['expiration']; + $expiration = $item['expiration'] ?? time(); if ($expiration === 0 || $expiration > time()) { return $item['value']; } @@ -92,7 +92,7 @@ class FileCache implements CacheInterface unlink($cacheFile); continue; } - $expiration = $item['expiration']; + $expiration = $item['expiration'] ?? time(); if ($expiration === 0 || $expiration > time()) { continue; } |