From 9732d8fc9ff976bea480b663012c6c6ec6dc9f01 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2022 22:09:04 +0300 Subject: update_rss_feed: use DiskCache to store feed data --- classes/cache/adapter.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'classes/cache/adapter.php') diff --git a/classes/cache/adapter.php b/classes/cache/adapter.php index da69c5bb1..88dca21b9 100644 --- a/classes/cache/adapter.php +++ b/classes/cache/adapter.php @@ -9,6 +9,11 @@ interface Cache_Adapter { * @return int|false -1 if the file doesn't exist, false if an error occurred, size in bytes otherwise */ public function get_size(string $filename); + + /** + * @return int|false -1 if the file doesn't exist, false if an error occurred, timestamp otherwise + */ + public function get_mtime(string $filename); /** * @param mixed $data * -- cgit v1.2.3