summaryrefslogtreecommitdiff
path: root/include/functions.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 /include/functions.php
parenta6d314b753d7e79da06c733efd5a96caf9b5f562 (diff)
scrap counter cache system; rework counters to sum() booleans instead
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/functions.php b/include/functions.php
index 42b05ff15..ce8a07d51 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -731,24 +731,7 @@
if ($_SESSION["uid"]) {
startup_gettext();
load_user_plugins($_SESSION["uid"]);
-
- /* cleanup ccache */
-
- $sth = $pdo->prepare("DELETE FROM ttrss_counters_cache WHERE owner_uid = ?
- AND
- (SELECT COUNT(id) FROM ttrss_feeds WHERE
- ttrss_feeds.id = feed_id) = 0");
-
- $sth->execute([$_SESSION['uid']]);
-
- $sth = $pdo->prepare("DELETE FROM ttrss_cat_counters_cache WHERE owner_uid = ?
- AND
- (SELECT COUNT(id) FROM ttrss_feed_categories WHERE
- ttrss_feed_categories.id = feed_id) = 0");
-
- $sth->execute([$_SESSION['uid']]);
}
-
}
}