diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 21:01:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 21:01:35 +0300 |
commit | 342e8a9eeb6361e8b87be523cd90bbcd036dfa88 (patch) | |
tree | 4499ff008d4cb5d9fa0a2b8bc276db8d7df77a56 | |
parent | 7c0eb1b6210a019926ec69179c81d545ac865b64 (diff) |
move feeds cache directory to cache/feeds
-rw-r--r-- | cache/feeds/.empty | 0 | ||||
-rw-r--r-- | classes/rssutils.php | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cache/feeds/.empty b/cache/feeds/.empty new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/cache/feeds/.empty diff --git a/classes/rssutils.php b/classes/rssutils.php index b6a00d309..c9e6bc0ea 100644 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -369,7 +369,7 @@ class RSSUtils { $date_feed_processed = date('Y-m-d H:i'); - $cache_filename = CACHE_DIR . "/simplepie/" . sha1($fetch_url) . ".xml"; + $cache_filename = CACHE_DIR . "/feeds/" . sha1($fetch_url) . ".xml"; $pluginhost = new PluginHost(); $pluginhost->set_debug($debug_enabled); @@ -454,7 +454,7 @@ class RSSUtils { } // cache vanilla feed data for re-use - if ($feed_data && !$auth_pass && !$auth_login && is_writable(CACHE_DIR . "/simplepie")) { + if ($feed_data && !$auth_pass && !$auth_login && is_writable(CACHE_DIR . "/feeds")) { $new_rss_hash = sha1($feed_data); if ($new_rss_hash != $rss_hash) { @@ -1288,7 +1288,7 @@ class RSSUtils { } static function expire_cached_files($debug) { - foreach (array("simplepie", "images", "export", "upload") as $dir) { + foreach (array("simplepie", "feeds", "images", "export", "upload") as $dir) { $cache_dir = CACHE_DIR . "/$dir"; // if ($debug) _debug("Expiring $cache_dir"); |