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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user