// 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).
<?php
require_once "functions.php";
- define('EXPECTED_CONFIG_VERSION', 11);
+ define('EXPECTED_CONFIG_VERSION', 12);
define('SCHEMA_VERSION', 26);
if (!file_exists("config.php")) {
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();