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:
@@ -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'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user