update_rss_feed: use DiskCache to store feed data
This commit is contained in:
4
classes/cache/local.php
vendored
4
classes/cache/local.php
vendored
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user