diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-06-18 21:54:22 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-06-18 21:54:22 +0300 |
| commit | df8403be082050b89eb62b9d3a369a1e1e9b76c9 (patch) | |
| tree | ccb757d7eb477d441500dcac7a3b70d2a08b622f | |
| parent | db3e67b3fe94f3752b6ff5af61703d1b60b5fcb5 (diff) | |
set DAEMON_FEED_LIMIT to 50 by default and use it consistently between forking daemon and any other update methods
| -rw-r--r-- | classes/Config.php | 2 | ||||
| -rwxr-xr-x | update.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/Config.php b/classes/Config.php index dff991463..d28a259c9 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -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 ], diff --git a/update.php b/update.php index ba31544f0..c8fe69fdb 100755 --- a/update.php +++ b/update.php @@ -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(); |