@@ -498,8 +498,8 @@ public function sendInvitationEmail
498
498
499
499
if ($ this ->isComplete ()) {
500
500
Log::debug (sprintf ("SummitAttendee::sendInvitationEmail attendee %s is complete " , $ email ));
501
- // adds a threshold of 10 minutes to avoid duplicates emails
502
- if (Cache::add (sprintf ("%s_emit_ticket " , $ key ), true , 10 )) {
501
+ // adds a threshold of 20 minutes to avoid duplicates emails
502
+ if (Cache::add (sprintf ("%s_emit_ticket " , $ key ), true , now ()-> addMinutes ( 20 ) )) {
503
503
Log::debug (sprintf ("SummitAttendee::sendInvitationEmail attendee %s ticket %s sending SummitAttendeeTicketEmail " , $ email , $ ticket ->getId ()));
504
504
SummitAttendeeTicketEmail::dispatch ($ ticket , $ payload , $ test_email_recipient );
505
505
$ ticket ->getOwner ()->markInvitationEmailSentDate ();
@@ -515,8 +515,8 @@ public function sendInvitationEmail
515
515
// they bought a ticket for themselves.
516
516
if ($ order ->getOwnerEmail () !== $ ticket ->getOwnerEmail () || $ overrideTicketOwnerIsSameAsOrderOwnerRule ) {
517
517
// no delay
518
- // adds a threshold of 10 minutes to avoid duplicates emails
519
- if (Cache::add (sprintf ("%s_edit_ticket " , $ key ), true , 10 )) {
518
+ // adds a threshold of 20 minutes to avoid duplicates emails
519
+ if (Cache::add (sprintf ("%s_edit_ticket " , $ key ), true , now ()-> addMinutes ( 20 ) )) {
520
520
Log::debug (sprintf ("SummitAttendee::sendInvitationEmail attendee %s ticket %s sending InviteAttendeeTicketEditionMail " , $ email , $ ticket ->getId ()));
521
521
InviteAttendeeTicketEditionMail::dispatch ($ ticket , $ payload , $ test_email_recipient );
522
522
$ ticket ->getOwner ()->markInvitationEmailSentDate ();
0 commit comments