From da0ad82c2497ed34cb29cf78e29c75a4d4ffb8bd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 17 Jan 2021 14:55:11 +0300 Subject: Archive cleanup: - remove code to manually archive/unarchive articles - remove ttrss_archived_feeds/orig_feed_id handling - the whole thing was implemented for this data to be kept indefinitely; it doesn't make a lot of sense to deal with this stuff now that it is expired after one month anyway (same reasons as feed browser being removed - privacy) - remove "originally from"-related stuff because of the above - also remove unused remaining frontend/backend code related to feed browser (rip) --- classes/rssutils.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'classes/rssutils.php') diff --git a/classes/rssutils.php b/classes/rssutils.php index dc80dd965..96f7b7c36 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1379,18 +1379,11 @@ class RSSUtils { } } + // deprecated; table not used static function expire_feed_archive() { - Debug::log("Removing old archived feeds..."); - $pdo = Db::pdo(); - if (DB_TYPE == "pgsql") { - $pdo->query("DELETE FROM ttrss_archived_feeds - WHERE created < NOW() - INTERVAL '1 month'"); - } else { - $pdo->query("DELETE FROM ttrss_archived_feeds - WHERE created < DATE_SUB(NOW(), INTERVAL 1 MONTH)"); - } + $pdo->query("DELETE FROM ttrss_archived_feeds"); } static function expire_lock_files() { -- cgit v1.2.3