more functional keyboard navigation, auto page flipping, updated README, auto post cleanup (PURGE_OLD_DAYS), schema updated

This commit is contained in:
Andrew Dolgov
2005-08-25 14:04:57 +01:00
parent 9cfc649af5
commit c3a8d71ad4
7 changed files with 113 additions and 38 deletions

View File

@@ -1,6 +1,13 @@
<?
require_once 'config.php';
function purge_old_posts() {
if (PURGE_OLD_DAYS) {
$result = pg_query("DELETE FROM ttrss_entries WHERE
date_entered < NOW() - INTERVAL '30 days'");
}
}
function update_all_feeds($link, $fetch) {
if (WEB_DEMO_MODE) return;
@@ -23,6 +30,8 @@
update_rss_feed($link, $line["feed_url"], $line["id"]);
}
purge_old_posts();
pg_query("COMMIT");
}