How to clear the laravel queue?
Question:
The queue task driver uses redis. Through the command: php artisan queue:work, the previous queue task will still be executed. How to clear the redis What about the mission?
Solution:
First method: Execute two commands on the command line
redis-cli #进入 redis 客户端 flushall #清空
Second method: Modify config/database The redis configuration item prefix in the .php file is
'redis' => [ 'client' => 'custom', ],
For more technical articles related to the laravel framework, please visit the laravel tutorial column!
The above is the detailed content of How to clear laravel queue. For more information, please follow other related articles on the PHP Chinese website!