summaryrefslogtreecommitdiff
path: root/classes/cache/local.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-23 22:09:04 +0300
committerAndrew Dolgov <[email protected]>2022-11-23 22:09:04 +0300
commit9732d8fc9ff976bea480b663012c6c6ec6dc9f01 (patch)
tree49932ff52a2fe97655666ba4e06b5988511286f7 /classes/cache/local.php
parent10a1dd35e3188674db61cce3a2cc64fd5fa1f596 (diff)
update_rss_feed: use DiskCache to store feed data
Diffstat (limited to 'classes/cache/local.php')
-rw-r--r--classes/cache/local.php4
1 files changed, 4 insertions, 0 deletions
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));
}