From: Andrew Dolgov Date: Wed, 1 May 2013 22:12:07 +0000 (+0400) Subject: Revert "ccache: do not force recalculate child counters on category upgrade because... X-Git-Tag: 1.7.9~25^2~27 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d0e9c40a5a292f909cc9a8cd3efb71be456a5e95;p=tt-rss.git Revert "ccache: do not force recalculate child counters on category upgrade because this is handled elsewhere" http://tt-rss.org/forum/viewtopic.php?f=10&t=1964 This reverts commit d571740b33994a8faa5290b63d1c8b68f16e7686. --- diff --git a/include/ccache.php b/include/ccache.php index c33165ef..d89b9efe 100644 --- a/include/ccache.php +++ b/include/ccache.php @@ -127,12 +127,12 @@ /* Recalculate counters for child feeds */ - /* $result = db_query("SELECT id FROM ttrss_feeds + $result = db_query("SELECT id FROM ttrss_feeds WHERE owner_uid = '$owner_uid' AND $cat_qpart"); while ($line = db_fetch_assoc($result)) { ccache_update($line["id"], $owner_uid, false, false); - } */ + } $result = db_query("SELECT SUM(value) AS sv FROM ttrss_counters_cache, ttrss_feeds