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/local.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/cache/local.php') diff --git a/classes/cache/local.php b/classes/cache/local.php index 20d97d9c0..4461ef4ca 100644 --- a/classes/cache/local.php +++ b/classes/cache/local.php @@ -2,6 +2,10 @@ class Cache_Local implements Cache_Adapter { private string $dir; + public function get_mtime(string $filename) { + return filemtime($this->get_full_path($filename)); + } + public function set_dir(string $dir) : void { $this->dir = Config::get(Config::CACHE_DIR) . "/" . basename(clean($dir)); } -- cgit v1.2.3-54-g00ecf