From: Andrew Dolgov Date: Fri, 16 Jan 2009 09:57:08 +0000 (+0100) Subject: top25 button uses feedbrowser cache X-Git-Tag: 1.3.0~160 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6c8feb8f1264469b30c7f57e2e98165ece5e5c3e;p=tt-rss.git top25 button uses feedbrowser cache --- diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 350d6d15..79055542 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -68,11 +68,16 @@ $owner_uid = $_SESSION["uid"]; - $result = db_query($link, "SELECT feed_url,COUNT(id) AS subscribers +/* $result = db_query($link, "SELECT feed_url,COUNT(id) AS subscribers FROM ttrss_feeds WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf WHERE tf.feed_url = ttrss_feeds.feed_url AND owner_uid = '$owner_uid') GROUP BY feed_url - ORDER BY subscribers DESC LIMIT 25"); + ORDER BY subscribers DESC LIMIT 25"); */ + + $result = db_query($link, "SELECT feed_url, subscribers FROM + ttrss_feedbrowser_cache WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf + WHERE tf.feed_url = ttrss_feedbrowser_cache.feed_url + AND owner_uid = '$owner_uid') ORDER BY subscribers DESC LIMIT 25"); print "