summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-01-17 14:55:11 +0300
committerAndrew Dolgov <[email protected]>2021-01-17 14:55:11 +0300
commitda0ad82c2497ed34cb29cf78e29c75a4d4ffb8bd (patch)
tree12f9b19df9a31766585e39e54d8d860f2dec3692 /classes/rssutils.php
parent6c1344908862e344a1108e92ec19368402cfd9d1 (diff)
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)
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php11
1 files changed, 2 insertions, 9 deletions
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() {