new config option: DAEMON_FEED_LIMIT
This commit is contained in:
parent
6352c214ca
commit
ae4ecd5d63
3 changed files with 6 additions and 3 deletions
|
@ -161,7 +161,10 @@
|
||||||
// These two options enable SMTP authentication when sending
|
// These two options enable SMTP authentication when sending
|
||||||
// digests. Require DIGEST_SMTP_HOST.
|
// 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
|
// Expected config version. Please update this option in config.php
|
||||||
// if necessary (after migrating all new options from this file).
|
// if necessary (after migrating all new options from this file).
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
|
||||||
define('EXPECTED_CONFIG_VERSION', 11);
|
define('EXPECTED_CONFIG_VERSION', 12);
|
||||||
define('SCHEMA_VERSION', 26);
|
define('SCHEMA_VERSION', 26);
|
||||||
|
|
||||||
if (!file_exists("config.php")) {
|
if (!file_exists("config.php")) {
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
ttrss_feeds,ttrss_users
|
ttrss_feeds,ttrss_users
|
||||||
WHERE
|
WHERE
|
||||||
ttrss_users.id = owner_uid $login_thresh_qpart
|
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();
|
$user_prefs_cache = array();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue