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

背景

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

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

解决办法

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

执行后成功解决问题

* 切记重启队列

Responses / Cancel Reply
  1. whoah this blog is magnificent i love reading your posts. Keep up the good work! You already know, lots of persons are looking around for this info, you can help them greatly.

    Reply
  2. Hello, There's no doubt that your blog might be having web browser compatibility issues. Whenever I take a look at your site in Safari, it looks fine however when opening in I.E., it's got some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, great blog!

    Reply
  3. Hi there, I enjoy reading through your article. I like to write a little comment to support you.

    Reply
  4. Just desire to say your article is as astounding. The clearness in your post is simply nice and i could assume you're an expert on this subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work.

    Reply
  5. I am regular visitor, how are you everybody? This piece of writing posted at this web page is genuinely pleasant.

    Reply
  6. I loved as much as you will receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this increase.

    Reply