How to Clear Job Cache
I have done everything, but my job cache is not updated. I run
php artisan view:clear && php artisan config:cache && php artisan cache:clear && php artisan route:clear
, but the Job class code is still not updated. The __construct
function code is updated, but the handle()
function code is not. I commented out the entire handle() function code, yet the job is still running. I added Log, but nothing is printed. Can anyone tell me how to debug this or flush the Job class cache?3 Replies
You need to restart your queue worker. It caches on boot.
Solution
something like:
php artisan horizon:terminate
php artisan queue:restart
Thank you very much, you save my day