mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 14:31:29 +00:00
ccache_update: properly call ccache_update_all() when dealing with a label
This commit is contained in:
@@ -5981,14 +5981,16 @@
|
||||
function ccache_update($link, $feed_id, $owner_uid, $is_cat = false,
|
||||
$update_pcat = true) {
|
||||
|
||||
/* Labels are no currently supported */
|
||||
$prev_unread = ccache_find($link, $feed_id, $owner_uid, $is_cat, true);
|
||||
|
||||
/* When updating a label, all we need to do is recalculate feed counters
|
||||
* because labels are not cached */
|
||||
|
||||
if ($feed_id < 0) {
|
||||
return -1;
|
||||
ccache_update_all($link, $owner_uid);
|
||||
return;
|
||||
}
|
||||
|
||||
$prev_unread = ccache_find($link, $feed_id, $owner_uid, $is_cat, true);
|
||||
|
||||
if (!$is_cat) {
|
||||
$table = "ttrss_counters_cache";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user