Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Aug 21, 2024
1 parent 1400fc7 commit b1504de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Cache/BaseDataCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1504de

Please sign in to comment.