diff options
author | Andrew Dolgov <[email protected]> | 2011-12-13 19:20:26 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-13 19:20:26 +0400 |
commit | 09e8bdfd18f81e432c5f392e398b8c8088168721 (patch) | |
tree | 341e9f4bdfb3503a8427fff40e57000e98d3ad4c /include/rssfuncs.php | |
parent | a3b5394aaf793d045256f67eb6fad0616b1ff950 (diff) |
simplify default global config, expand sanity_check messages
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 3dbcb34b2..7588428de 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1,4 +1,8 @@ <?php + define('DAEMON_UPDATE_LOGIN_LIMIT', 30); + define('DAEMON_FEED_LIMIT', 100); + define('DAEMON_SLEEP_INTERVAL', 120); + function update_feedbrowser_cache($link) { $result = db_query($link, "SELECT feed_url, site_url, title, COUNT(id) AS subscribers @@ -57,7 +61,7 @@ // Process all other feeds using last_updated and interval parameters // Test if the user has loggued in recently. If not, it does not update its feeds. - if (DAEMON_UPDATE_LOGIN_LIMIT > 0) { + if (!SINGLE_USER_MODE && DAEMON_UPDATE_LOGIN_LIMIT > 0) { if (DB_TYPE == "pgsql") { $login_thresh_qpart = "AND ttrss_users.last_login >= NOW() - INTERVAL '".DAEMON_UPDATE_LOGIN_LIMIT." days'"; } else { @@ -143,7 +147,7 @@ } // Send feed digests by email if needed. - if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link); + send_headlines_digests($link); } // function update_daemon_common |