Support the ongoing development of Laravel.io →
Artisan Authorization Jobs

I'm at my wits end, I inherited a Laravel 5.6 app and I had to update the email password today. I've cleared the caches, and re-cached the config; verified that my updated password is now sitting in bootstrap/cache/config.php.

However every time the invite email job kicks off it still tries to use the old password. I've watched the logs on our mail server and it is definitely sending the old password when trying to auth against smtp. I can't find any other references to the old password (ran a find . -type f passing every file through grep looking for it) and came up with nothing. I've gone through the app directory and everything under it looking to see if the developer pre-encoded it somewhere but there's nothing.

I've bounced apache, deleted the entire contents of storage/framework/cache - it's an empty directory now but without fail, when the job kicks off it sends the old password. Is there something I'm missing here that's special about job queues? I can't figure out how it's still finding it at this point.

Last updated 2 years ago.

rooniieesss liked this thread

1
moderator

You need to restart the queues to let it read the new data from the config (or any other file). This is because after reading the first time it is in memory in will not read again.

kevinb1989 liked this reply

1

Use php artisan cache:clear to flush the application's cache.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

KSG kgill Joined 9 Apr 2021

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.