From 9b7ecc0ac790c611965e6a2359a06f95b2bbc38c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 2 Feb 2009 15:24:32 +0300 Subject: update amount of subscribed feeds in runtime-info (to invalidate feedlist cache) --- functions.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 523c74944..80488b09f 100644 --- a/functions.php +++ b/functions.php @@ -3002,12 +3002,28 @@ print ""; + $result = db_query($link, "SELECT COUNT(*) AS cf FROM + ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"]); + + $num_feeds = db_fetch_result($result, 0, "cf"); + + print ""; + print ""; } function print_runtime_info($link) { print ""; + $result = db_query($link, "SELECT COUNT(*) AS cf FROM + ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"]); + + $num_feeds = db_fetch_result($result, 0, "cf"); + + print ""; + if (ENABLE_UPDATE_DAEMON) { print ""; -- cgit v1.2.3