]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: better purging debug
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 12 Apr 2011 16:23:55 +0000 (20:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 12 Apr 2011 16:23:55 +0000 (20:23 +0400)
functions.php

index 637649c17d566720341a1223cb9c06ce64778483..e427339e56f00ceb4b035adfe8d5527256a0228e 100644 (file)
                if (!$purge_unread) $query_limit = " unread = false AND ";
 
                if (DB_TYPE == "pgsql") {
-/*                     $result = db_query($link, "DELETE FROM ttrss_user_entries WHERE
-                               marked = false AND feed_id = '$feed_id' AND
-                               (SELECT date_updated FROM ttrss_entries WHERE
-                                       id = ref_id) < NOW() - INTERVAL '$purge_interval days'"); */
-
                        $pg_version = get_pgsql_version($link);
 
                        if (preg_match("/^7\./", $pg_version) || preg_match("/^8\.0/", $pg_version)) {
                                catchup_feed($link, $feed, false, $owner_uid);
                        }
 
-                       purge_feed($link, $feed, 0);
+                       if ($debug_enabled) {
+                               _debug("purging feed...");
+                       }
+
+                       purge_feed($link, $feed, 0, $debug_enabled);
 
                        db_query($link, "UPDATE ttrss_feeds
                                SET last_updated = NOW(), last_error = '' WHERE id = '$feed'");