From 69a691f4e13382924d93c85091a2a5f525d1effe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Mar 2019 20:12:44 +0300 Subject: [PATCH] cleanup old feed browser cache --- classes/rssutils.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/rssutils.php b/classes/rssutils.php index 36236bafe..8feffa662 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -19,6 +19,11 @@ class RSSUtils { return preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $str); } + static function cleanup_feed_browser() { + $pdo = Db::pdo(); + $pdo->query("DELETE FROM ttrss_feedbrowser_cache"); + } + static function update_daemon_common($limit = DAEMON_FEED_LIMIT) { $schema_version = get_schema_version(); @@ -1494,6 +1499,7 @@ class RSSUtils { RSSUtils::expire_lock_files(); RSSUtils::expire_error_log(); RSSUtils::expire_feed_archive(); + RSSUtils::cleanup_feed_browser(); Article::purge_orphans(); RSSUtils::cleanup_counters_cache();