1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

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)
This commit is contained in:
Andrew Dolgov
2021-01-17 14:55:11 +03:00
parent 6c13449088
commit da0ad82c24
7 changed files with 14 additions and 288 deletions

View File

@@ -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() {