首页 > 解决方案 > Laravel 队列缓存未更新

问题描述

我在我的应用程序中使用了 Laravel 队列,当我尝试运行时

 php artisan queue:restart

它给了我以下例外:

 ErrorException  : file_put_contents(/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90): failed to open stream: No such file or directory

  at /var/www/html/asd/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
    118|      * @return int
    119|      */
    120|     public function put($path, $contents, $lock = false)
    121|     {
  > 122|         return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
    123|     }
    124|
    125|     /**
    126|      * Prepend to a file.

  Exception trace:

  1   file_put_contents("/var/www/html/asd/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90", "9999999999i:1558912298;")
      /var/www/html/asd/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122

  2   Illuminate\Filesystem\Filesystem::put("/var/www/html/asd/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90", "9999999999i:1558912298;")
      /var/www/html/asd/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:65

  Please use the argument -v to see more details.

我尝试运行以下命令但无济于事:

composer dump-autoload
php artisan optimize
php artisan clear-compiled
php artisan cache:clear
php artisan view:clear
php artisan route:cache

我无法反映对队列处理程序中的应用程序逻辑所做的更改,非常感谢这方面的任何帮助。

标签: laravellaravel-5laravel-queue

解决方案


您忘记php artisan config:cache使用其他命令运行


推荐阅读