1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

fix ccache_update() failure when called for labels

This commit is contained in:
Andrew Dolgov
2009-01-17 18:23:12 +01:00
parent cd4cc9f6e4
commit 51e196dee9
2 changed files with 7 additions and 4 deletions

View File

@@ -270,7 +270,12 @@
$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);