1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-05 09:49:15 +00:00

scrap counter cache system; rework counters to sum() booleans instead

This commit is contained in:
Andrew Dolgov
2020-01-24 14:25:31 +03:00
parent a6d314b753
commit 6080cca9ca
8 changed files with 170 additions and 502 deletions

View File

@@ -300,16 +300,6 @@ class API extends Handler {
$num_updated = $sth->rowCount();
if ($num_updated > 0 && $field == "unread") {
$sth = $this->pdo->prepare("SELECT DISTINCT feed_id FROM ttrss_user_entries
WHERE ref_id IN ($article_qmarks)");
$sth->execute($article_ids);
while ($line = $sth->fetch()) {
CCache::update($line["feed_id"], $_SESSION["uid"]);
}
}
$this->wrap(self::STATUS_OK, array("status" => "OK",
"updated" => $num_updated));