laravel - 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
我无法反映对队列处理程序中的应用程序逻辑所做的更改,非常感谢这方面的任何帮助。
解决方案
您忘记php artisan config:cache
使用其他命令运行
推荐阅读
- powershell - 有没有办法使用 powershell 重置 UWP 应用程序?
- javascript - 在 nodejs SQLite3 .each() 方法中,如何添加多个参数以使用多个“WHERE ... =?” 查询?
- javascript - 将此代码从 FileReader() 更改为 URL.createObjectURL
- reactjs - 使用事件侦听器 keydown 时的 React Hooks 状态问题
- r - 基于R中具有特定文件名的父目录重命名文件
- ios - 当试图从表视图中转到视图控制器时,我收到此错误:Unexpectedly found nil while unwrapping
- python - 由于 dagbag 错误,即使从 UI 手动触发 Airflow 也不会触发 dag
- r - 如何将比较运算符作为参数传递给函数?
- python - 如何将 TensorFlow 对象检测 API 包含到我的 Python 项目中?
- python - 如何将嵌套循环转换为跟踪内部循环的列表理解?