From b1504de68ab207a9e15862cc03a863ccefb5bf7c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 21 Aug 2024 22:34:09 +0200 Subject: [PATCH] Fix tests --- src/Cache/BaseDataCache.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Cache/BaseDataCache.php b/src/Cache/BaseDataCache.php index a287e78f..bb1b8c5f 100644 --- a/src/Cache/BaseDataCache.php +++ b/src/Cache/BaseDataCache.php @@ -50,12 +50,12 @@ public function get_data(string $key, $default = null) return $default; } - // FreshRSS commented out, to allow HTTP 304 - // // ignore data if internal cache expiration time is not set - // if (!array_key_exists('__cache_expiration_time', $data)) { - // return $default; - // } + // ignore data if internal cache expiration time is not set + if (!array_key_exists('__cache_expiration_time', $data)) { + return $default; + } + // FreshRSS commented out, to allow HTTP 304 // // ignore data if internal cache expiration time is expired // if ($data['__cache_expiration_time'] < time()) { // return $default;