Skip to content

Commit

Permalink
Merge pull request #641 from nextcloud/backport/640/stable22
Browse files Browse the repository at this point in the history
[stable22] Increase activity email speed in instances with more than 500 users
  • Loading branch information
nickvergessen authored Sep 14, 2021
2 parents f548565 + 1931d56 commit 250d613
Showing 1 changed file with 3 additions and 7 deletions.
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

0 comments on commit 250d613

Please sign in to comment.