summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-24 14:25:31 +0300
committerAndrew Dolgov <[email protected]>2020-01-24 14:25:31 +0300
commit6080cca9ca1de60a5d4a1ef06d4873eca07d9ef2 (patch)
tree3a59a6803fbb38067746895bfcb277d2db688e81 /classes/api.php
parenta6d314b753d7e79da06c733efd5a96caf9b5f562 (diff)
scrap counter cache system; rework counters to sum() booleans instead
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php10
1 files changed, 0 insertions, 10 deletions
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));