mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 01:05:56 +00:00
ccache: skip non-numeric feeds (e.g. tags)
This commit is contained in:
@@ -5684,6 +5684,8 @@
|
||||
function ccache_find($link, $feed_id, $owner_uid, $is_cat = false,
|
||||
$no_update = false) {
|
||||
|
||||
if (!is_numeric($feed_id)) return;
|
||||
|
||||
if (!$is_cat) {
|
||||
$table = "ttrss_counters_cache";
|
||||
} else {
|
||||
@@ -5715,6 +5717,8 @@
|
||||
function ccache_update($link, $feed_id, $owner_uid, $is_cat = false,
|
||||
$update_pcat = true) {
|
||||
|
||||
if (!is_numeric($feed_id)) return;
|
||||
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user