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?
Solution:
something like: php artisan horizon:terminate php artisan queue:restart...
Jump to solution
3 Replies
toeknee
toeknee2mo ago
You need to restart your queue worker. It caches on boot.
Solution
toeknee
toeknee2mo ago
something like: php artisan horizon:terminate php artisan queue:restart
Joginder Sharma
Joginder SharmaOP2mo ago
Thank you very much, you save my day

Did you find this page helpful?