I am using new Mail Notification feature from Laravel 6.x and use supervisor to manage queue worker and the queue connection is database.
And everything worked fine until now. Until I changed toMail function and deployed to production server. On local it works fine (mailtrap, smtp gmail, mailgun)
But on production it keeps using old version of MailMessage entity returned at toMail function and sometimes sending old layout and sometime sending new layout. I checked the code at server - it is the same as at local.
I executed these in terminal, but it didn't help:
composer dump-autoload, php artisan clear-compiled, php artisan cache:clear, php artisan view:clear, php artisan optimize:clear, rm -rf bootstrap/cache, restart supervisor, disable opcache
I give up with
queue_connection=database
,
I don't know the issue still happen. So I change to with
queue_connection=redis
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community