]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
added support for marking posts
[tt-rss.git] / functions.php
index ea2c2235d9c73484647cfaccc8403d9fb772c731..d572ee78005b2532a5bca4e31ee2c54f5d4178fd 100644 (file)
@@ -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'");
                }
        }