summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-17 17:10:06 +0100
committerAndrew Dolgov <[email protected]>2009-01-17 17:10:06 +0100
commitddc34b9b6edff0e8112e8f887018542980138b58 (patch)
tree0b06289cc3b96d4b75df70c04fc7abb39d384f8a /functions.php
parenta06d0e5a8b92a2015a05b376eb6b8f4a9878c4e0 (diff)
update_rss_feed: do not cache counters for hidden feeds
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/functions.php b/functions.php
index ce1813449..9a6b178ee 100644
--- a/functions.php
+++ b/functions.php
@@ -555,7 +555,7 @@
} else {
$result = db_query($link, "SELECT id,update_interval,auth_login,
- auth_pass,cache_images,update_method
+ auth_pass,cache_images,update_method,hidden
FROM ttrss_feeds WHERE id = '$feed'");
}
@@ -567,6 +567,7 @@
return false;
}
+ $hidden = sql_bool_to_bool(db_fetch_result($result, 0, "hidden"));
$update_method = db_fetch_result($result, 0, "update_method");
db_query($link, "UPDATE ttrss_feeds SET last_update_started = NOW()
@@ -1408,11 +1409,13 @@
}
}
- if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
- _debug("update_rss_feed: updating counters cache...");
- }
+ if (!$hidden) {
+ if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
+ _debug("update_rss_feed: updating counters cache...");
+ }
- ccache_update($link, $feed, $owner_uid);
+ ccache_update($link, $feed, $owner_uid);
+ }
db_query($link, "UPDATE ttrss_feeds
SET last_updated = NOW(), last_error = '' WHERE id = '$feed'");