]> git.wh0rd.org Git - tt-rss.git/commitdiff
ccache_update: code cleanup
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 16:20:45 +0000 (17:20 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 16:20:45 +0000 (17:20 +0100)
functions.php

index 78cd39875f48e7140640665b37c83a0c1ad60118..8b8dba603f07f3b117133e637f250856d17d27c5 100644 (file)
                        }
                }
 
-#              if ($feed_id > 0) {
-#
-#                      /* update parent cat if needed OR in cat mode update cat feeds */
-#
-#                      if ($is_cat) {
-#                              $result = db_query($link, "SELECT id AS feed_id FROM ttrss_feeds
-#                                      WHERE owner_uid = '$owner_uid' AND cat_id = '$feed_id'");
-#
-#                              while ($line = db_fetch_assoc($result)) {
-#                                      ccache_update($link, (int)$line["feed_id"], $owner_uid, false);
-#                              }
-#
-#                      } else {                        
-#                              $result = db_query($link, "SELECT cat_id AS feed_id FROM ttrss_feeds
-#                                      WHERE owner_uid = '$owner_uid' AND id = '$feed_id'");
-#
-#                              while ($line = db_fetch_assoc($result)) {
-#                                      ccache_update($link, (int)$line["feed_id"], $owner_uid, true);
-#                              }
-#                      }
-#
-#                      /* update labels */
-#
-#                      $result = db_query($link, "SELECT feed_id FROM ttrss_counters_cache
-#                                      WHERE owner_uid = '$owner_uid' AND feed_id < 0");
-#
-#                      while ($line = db_fetch_assoc($result)) {
-#                              ccache_update($link, $line["feed_id"], $owner_uid);
-#                      }
-#              }
-
                return $unread;
        }
 ?>