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

背景

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

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

解决办法

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

执行后成功解决问题

* 切记重启队列

Responses
  1. Thanks a lot for sharing this with all people you really recognize what you are speaking about! Bookmarked. Please also seek advice from my website =). We could have a link exchange agreement among us

    Reply
  2. Heya i am for the primary time here. I came across this board and I to find It really useful & it helped me out a lot. I am hoping to provide one thing again and help others like you aided me.

    Reply
  3. It's amazing to pay a visit this site and reading the views of all colleagues concerning this paragraph, while I am also keen of getting familiarity.

    Reply
  4. Hello, i think that i saw you visited my website thus i came to “return the favor”.I'm attempting to find things to improve my site!I suppose its ok to use a few of your ideas!!

    Reply
  5. Woah! I'm really enjoying the template/theme of this blog. It's simple, yet effective. A lot of times it's hard to get that "perfect balance" between usability and appearance. I must say you've done a fantastic job with this. In addition, the blog loads super quick for me on Opera. Outstanding Blog!

    Reply
  6. It's very simple to find out any matter on net as compared to textbooks, as I found this post at this website.

    Reply