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

背景

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

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

解决办法

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

执行后成功解决问题

* 切记重启队列

Responses
  1. I always emailed this blog post page to all my contacts, because if like to read it next my links will too.

    Reply
  2. I visited various web pages but the audio quality for audio songs present at this web site is genuinely marvelous.

    Reply
  3. Ahaa, its nice discussion concerning this piece of writing here at this web site, I have read all that, so now me also commenting at this place.

    Reply
  4. Excellent blog right here! Additionally your website loads up fast! What host are you the use of? Can I get your affiliate hyperlink to your host? I desire my site loaded up as quickly as yours lol

    Reply
  5. Hello! I've been following your web site for a while now and finally got the bravery to go ahead and give you a shout out from Huffman Texas! Just wanted to mention keep up the good work!

    Reply
  6. I must thank you for the efforts you've put in writing this website. I'm hoping to check out the same high-grade content by you later on as well. In truth, your creative writing abilities has inspired me to get my own blog now ;)

    Reply