1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-30 22:31:27 +00:00

labels: unfortunately we can't rely on caption to selectively clear label_cache (because of json unicode encoding) so clean it completely if label is updated

This commit is contained in:
Andrew Dolgov
2018-12-06 08:29:32 +03:00
parent 0a41c1a6e1
commit fd10614f5d
2 changed files with 6 additions and 10 deletions

View File

@@ -163,8 +163,8 @@ class Labels
/* Remove cached data */
$sth = $pdo->prepare("UPDATE ttrss_user_entries SET label_cache = ''
WHERE label_cache LIKE ? AND owner_uid = ?");
$sth->execute(["%$caption%", $owner_uid]);
WHERE owner_uid = ?");
$sth->execute([$owner_uid]);
}