@@ -498,8 +498,8 @@ public function sendInvitationEmail
498498
499499 if ($ this ->isComplete ()) {
500500 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 ) )) {
503503 Log::debug (sprintf ("SummitAttendee::sendInvitationEmail attendee %s ticket %s sending SummitAttendeeTicketEmail " , $ email , $ ticket ->getId ()));
504504 SummitAttendeeTicketEmail::dispatch ($ ticket , $ payload , $ test_email_recipient );
505505 $ ticket ->getOwner ()->markInvitationEmailSentDate ();
@@ -515,8 +515,8 @@ public function sendInvitationEmail
515515 // they bought a ticket for themselves.
516516 if ($ order ->getOwnerEmail () !== $ ticket ->getOwnerEmail () || $ overrideTicketOwnerIsSameAsOrderOwnerRule ) {
517517 // 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 ) )) {
520520 Log::debug (sprintf ("SummitAttendee::sendInvitationEmail attendee %s ticket %s sending InviteAttendeeTicketEditionMail " , $ email , $ ticket ->getId ()));
521521 InviteAttendeeTicketEditionMail::dispatch ($ ticket , $ payload , $ test_email_recipient );
522522 $ ticket ->getOwner ()->markInvitationEmailSentDate ();
0 commit comments