diff options
author | Andrew Dolgov <[email protected]> | 2013-03-04 21:49:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-04 21:49:14 +0400 |
commit | f1618695411db1346b41f4072e9b4e484ee2a4da (patch) | |
tree | e71997490c8593cc83c8683313b7d7fe1be815bc | |
parent | b7c8622ec75e7921a1e4d8b0aa3aedcb7b166c5d (diff) |
when purging inactive feeds, set last_updated to NOW()
-rw-r--r-- | include/rssfuncs.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 77dd3aae2..f1d112979 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -179,6 +179,10 @@ while ($line = db_fetch_assoc($result)) { $articles_removed += purge_feed($link, $line["id"], 0, false); + + db_query($link, "UPDATE ttrss_feeds SET last_updated = NOW() WHERE + id = " . $line["id"]); + ++$feeds_purged; } |