Skip to content

Commit 7c4d7af

Browse files
Merge pull request #643 from nextcloud/backport/640/stable20
[stable20] Increase activity email speed in instances with more than 500 users
2 parents b6c5e23 + fac6843 commit 7c4d7af

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/BackgroundJob/EmailNotification.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,10 @@ class EmailNotification extends TimedJob {
3939
/** @var bool */
4040
protected $isCLI;
4141

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

5147
$this->queueHandler = $mailQueueHandler;
5248
$this->isCLI = $isCLI;

0 commit comments

Comments
 (0)