From 6080cca9ca1de60a5d4a1ef06d4873eca07d9ef2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Jan 2020 14:25:31 +0300 Subject: scrap counter cache system; rework counters to sum() booleans instead --- classes/api.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'classes/api.php') diff --git a/classes/api.php b/classes/api.php index 68c46d53c..339e9eef1 100755 --- a/classes/api.php +++ b/classes/api.php @@ -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)); -- cgit v1.2.3-54-g00ecf