]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PollContacts.php
Issue 11932: Restore SQL performance
[friendica.git] / src / Worker / PollContacts.php
index 313a8c6812b9472425dd38c943011f889f7d62ea..b4312ef0c3022cab852d8b97f57ab3facde3a411 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -81,6 +81,7 @@ class PollContacts
                        Logger::notice("Polling " . $contact["network"] . " " . $contact["id"] . " " . $contact['priority'] . " " . $contact["nick"] . " " . $contact["name"]);
 
                        Worker::add(['priority' => $priority, 'dont_fork' => true, 'force_priority' => true], 'OnePoll', (int)$contact['id']);
+                       Worker::coolDown();
                }
                DBA::close($contacts);
        }