summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index ea2c2235d..d572ee780 100644
--- a/functions.php
+++ b/functions.php
@@ -6,6 +6,7 @@
function purge_old_posts() {
if (PURGE_OLD_DAYS > 0) {
$result = pg_query("DELETE FROM ttrss_entries WHERE
+ marked = false AND
date_entered < NOW() - INTERVAL '".PURGE_OLD_DAYS." days'");
}
}