]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: do not cache counters for hidden feeds
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 16:10:06 +0000 (17:10 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 16:10:06 +0000 (17:10 +0100)
functions.php

index ce1813449718e3c1d181c90505b7016059d8ca36..9a6b178ee96dfe88a495b533ac56c6213ea21154 100644 (file)
                } else {
 
                        $result = db_query($link, "SELECT id,update_interval,auth_login,
-                               auth_pass,cache_images,update_method
+                               auth_pass,cache_images,update_method,hidden
                                FROM ttrss_feeds WHERE id = '$feed'");
 
                }
                        return false;
                }
 
+               $hidden = sql_bool_to_bool(db_fetch_result($result, 0, "hidden"));
                $update_method = db_fetch_result($result, 0, "update_method");
 
                db_query($link, "UPDATE ttrss_feeds SET last_update_started = NOW()
                                }
                        } 
 
-                       if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
-                               _debug("update_rss_feed: updating counters cache...");
-                       }
+                       if (!$hidden) {
+                               if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
+                                       _debug("update_rss_feed: updating counters cache...");
+                               }
 
-                       ccache_update($link, $feed, $owner_uid);
+                               ccache_update($link, $feed, $owner_uid);
+                       }
 
                        db_query($link, "UPDATE ttrss_feeds 
                                SET last_updated = NOW(), last_error = '' WHERE id = '$feed'");