Issue 9015: Reducing load of remote systems

This commit is contained in:
Michael 2020-08-15 20:05:08 +00:00
parent 6dff5fa562
commit 1f9b365f3b
6 changed files with 34 additions and 32 deletions

View file

@ -181,7 +181,7 @@ class Cron
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function pollContacts() {
$min_poll_interval = DI::config()->get('system', 'min_poll_interval', 1);
$min_poll_interval = DI::config()->get('system', 'min_poll_interval');
Addon::reload();

View file

@ -60,7 +60,7 @@ class OnePoll
return;
}
if (($contact['network'] != Protocol::MAIL) || $force) {
if (($contact['network'] != Protocol::MAIL) && $force) {
Contact::updateFromProbe($contact_id);
}