diff options
author | Andrew Dolgov <[email protected]> | 2007-11-17 09:40:37 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-11-17 09:40:37 +0100 |
commit | ae4ecd5d63acfd43ff04a5e8df13dc030e779f07 (patch) | |
tree | 894dbac9393b6faa97f38c0f76432e154310e10f | |
parent | 6352c214ca3e7c394fd6576af6d41a2835144d13 (diff) |
new config option: DAEMON_FEED_LIMIT
-rw-r--r-- | config.php-dist | 5 | ||||
-rw-r--r-- | sanity_check.php | 2 | ||||
-rw-r--r-- | update_daemon.php | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/config.php-dist b/config.php-dist index 55c068441..8001513d0 100644 --- a/config.php-dist +++ b/config.php-dist @@ -161,7 +161,10 @@ // These two options enable SMTP authentication when sending // digests. Require DIGEST_SMTP_HOST. - define('CONFIG_VERSION', 11); + define('DAEMON_FEED_LIMIT', 100); + // Limits the amount of feeds daemon updates on one run + + define('CONFIG_VERSION', 12); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). diff --git a/sanity_check.php b/sanity_check.php index 4e99dc20a..a8a91b73c 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -1,7 +1,7 @@ <?php require_once "functions.php"; - define('EXPECTED_CONFIG_VERSION', 11); + define('EXPECTED_CONFIG_VERSION', 12); define('SCHEMA_VERSION', 26); if (!file_exists("config.php")) { diff --git a/update_daemon.php b/update_daemon.php index 50d13191c..75229f667 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -133,7 +133,7 @@ ttrss_feeds,ttrss_users WHERE ttrss_users.id = owner_uid $login_thresh_qpart - ORDER BY $random_qpart DESC"); + ORDER BY $random_qpart DESC LIMIT " . DAEMON_FEED_LIMIT); $user_prefs_cache = array(); |