记一次 laravel queue cache 队列缓存引起的生产事故

背景

项目版本改动了 queue 的 job 类的业务逻辑,自测、测试验收没问题后上线生产环境。
出现生产环境执行结果并未改动,还是上线之前的逻辑结果。
各种排查代码版本无误,打印日志耕版不生效,一度怀疑改错了代码文件,修改任何东西都不生效。

后来经搜索结合排查得出原因是 queue 缓存引起的,在这里具体业务代码不表,只说问题以及处理方法步骤。

解决办法

php artisan cache:clear
php artisan config:clear
php artisan queue:restart

执行后成功解决问题

* 切记重启队列

Responses
  1. I'm extremely inspired together with your writing talents as well as with the structure in your weblog. Is that this a paid theme or did you modify it your self? Either way keep up the excellent high quality writing, it is rare to look a great blog like this one nowadays..

    Reply
  2. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how can we communicate?

    Reply
  3. I read this piece of writing completely on the topic of the difference of hottest and preceding technologies, it's remarkable article.

    Reply
  4. Incredible story there. What occurred after? Good luck!

    Reply
  5. Howdy this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

    Reply
  6. Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it's driving me mad so any assistance is very much appreciated.

    Reply