summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-19 21:36:50 +0300
committerAndrew Dolgov <[email protected]>2022-12-19 21:36:50 +0300
commitd373b7b452c6d64b47180940ed88c99c21bd9bc3 (patch)
tree08024adea61fcee2f646554a349ea90b30a150b4 /classes/feeds.php
parent20d6aaa9ab976d3e044fbd7ad2b1167260cc213c (diff)
* bring back cache-busting for feed icons based on timestamp
* DiskCache: use singleton pattern to create less cache object instances * DiskCache: implement ETag
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index d34a23e4b..382d8dbf8 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -1163,7 +1163,7 @@ class Feeds extends Handler_Protected {
}
static function _get_icon_file(int $feed_id): string {
- $favicon_cache = new DiskCache('feed-icons');
+ $favicon_cache = DiskCache::instance('feed-icons');
return $favicon_cache->get_full_path((string)$feed_id);
}
@@ -1182,7 +1182,7 @@ class Feeds extends Handler_Protected {
}
static function _has_icon(int $feed_id): bool {
- $favicon_cache = new DiskCache('feed-icons');
+ $favicon_cache = DiskCache::instance('feed-icons');
return $favicon_cache->exists((string)$feed_id);
}