Dont cache the mail:send query
This commit is contained in:
parent
2f24e13940
commit
3555e5a91c
@ -27,7 +27,7 @@ class MailSend extends Command
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle()
|
||||
public function handle(): int
|
||||
{
|
||||
switch ($this->option('type')) {
|
||||
case 'crash':
|
||||
@ -48,5 +48,7 @@ class MailSend extends Command
|
||||
default:
|
||||
$this->error('Specify -T crash, normal or all');
|
||||
}
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
@ -65,6 +65,7 @@ class MailSend #implements ShouldQueue
|
||||
})
|
||||
->groupBy('a.system_id','a.id','a.zone_id','addresses.region_id','a.host_id','a.node_id','a.point_id','addresses.hub_id','addresses.role')
|
||||
->with(['system','zone.domain'])
|
||||
->dontCache()
|
||||
->get();
|
||||
|
||||
// Return the system we poll
|
||||
|
Loading…
Reference in New Issue
Block a user