Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Increase activity email speed in instances with more than 500 users
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Sep 14, 2021
commit 12d5b5358136fa77fc1c27e76901df8e29ff68e5
10 changes: 3 additions & 7 deletions lib/BackgroundJob/EmailNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ class EmailNotification extends TimedJob {
/** @var bool */
protected $isCLI;

/**
* @param MailQueueHandler $mailQueueHandler
* @param bool $isCLI
*/
public function __construct(MailQueueHandler $mailQueueHandler,
$isCLI) {
// Run all 15 Minutes
$this->setInterval(15 * 60);
bool $isCLI) {
// Run everytime cron is executed, so the batching doesn't delay too much
$this->setInterval(1);

$this->queueHandler = $mailQueueHandler;
$this->isCLI = $isCLI;
Expand Down