1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 14:31:33 +00:00

purging of old posts is actually configurable now, added comments for some configuration options, interface cleanups

This commit is contained in:
Andrew Dolgov
2005-09-02 16:50:12 +01:00
parent f179a35d12
commit f92db4f5e7
3 changed files with 27 additions and 9 deletions

View File

@@ -4,9 +4,9 @@
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
function purge_old_posts() {
if (PURGE_OLD_DAYS) {
if (PURGE_OLD_DAYS > 0) {
$result = pg_query("DELETE FROM ttrss_entries WHERE
date_entered < NOW() - INTERVAL '30 days'");
date_entered < NOW() - INTERVAL '".PURGE_OLD_DAYS." days'");
}
}