Support the ongoing development of Laravel.io →
Blade Mail Cache

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

Last updated by @rooniieesss 1 year ago.
0

I give up with queue_connection=database, I don't know the issue still happen. So I change to with queue_connection=redis

0

Did you restart your queue worker ?

0

xin chao

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

ren rooniieesss Joined 22 Dec 2023

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.