set DAEMON_FEED_LIMIT to 50 by default and use it consistently between forking daemon and any other update methods
This commit is contained in:
@@ -238,7 +238,7 @@ class Config {
|
||||
Config::FILE_FETCH_TIMEOUT => [ 45, Config::T_INT ],
|
||||
Config::FILE_FETCH_CONNECT_TIMEOUT => [ 15, Config::T_INT ],
|
||||
Config::DAEMON_UPDATE_LOGIN_LIMIT => [ 30, Config::T_INT ],
|
||||
Config::DAEMON_FEED_LIMIT => [ 500, Config::T_INT ],
|
||||
Config::DAEMON_FEED_LIMIT => [ 50, Config::T_INT ],
|
||||
Config::DAEMON_SLEEP_INTERVAL => [ 120, Config::T_INT ],
|
||||
Config::MAX_CACHE_FILE_SIZE => [ 64*1024*1024, Config::T_INT ],
|
||||
Config::MAX_DOWNLOAD_FILE_SIZE => [ 16*1024*1024, Config::T_INT ],
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
exit(1);
|
||||
}
|
||||
|
||||
RSSUtils::update_daemon_common(isset($options["pidlock"]) ? 50 : Config::get(Config::DAEMON_FEED_LIMIT), $options);
|
||||
RSSUtils::update_daemon_common(Config::get(Config::DAEMON_FEED_LIMIT), $options);
|
||||
|
||||
if (!isset($options["pidlock"]) || $options["task"] == "0")
|
||||
RSSUtils::housekeeping_common();
|
||||
|
||||
Reference in New Issue
Block a user