]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
fix ccache_update() failure when called for labels
[tt-rss.git] / backend.php
index 5d25ba30279ff9010499cf01af70490be411ea79..1e60e392d0445f5826e22b206c7c907b122438da 100644 (file)
                        $csync = $_GET["csync"];
                        $order_by = db_escape_string($_GET["order_by"]);
 
-                       ccache_update($link, $feed, $_SESSION["uid"], $cat_view);
+                       /* Updating a label ccache means recalculating all of the caches
+                        * so for performance reasons we don't do that here */
+
+                       if ($feed >= 0) {
+                               ccache_update($link, $feed, $_SESSION["uid"], $cat_view);
+                       }
 
                        set_pref($link, "_DEFAULT_VIEW_MODE", $view_mode);
                        set_pref($link, "_DEFAULT_VIEW_LIMIT", $limit);