【问题标题】:Laravel Cache Not ClearingLaravel 缓存未清除
【发布时间】:2018-06-04 17:25:37
【问题描述】:

我在一些 Laravel 5.4 请求中遇到了一些奇怪的 503 错误,所以我查看了缓存,发现它非常大。我试图清除它,但似乎没有帮助。

php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
sudo chmod -R 777 storage/
composer dump-autoload
cd storage/framework
storage/framework$ du -h --max-depth=1 | sort -hr

28G     ./cache
28G     .
24M     ./sessions
856K    ./views
8.0K    ./testing

28G 大小的缓存让我觉得还有其他事情发生。 我不确定我的 503 错误是否是由于缓存大小造成的,但这里似乎有些不对劲。缓存没有清除的任何原因?

【问题讨论】:

  • 我使用 redis 作为我的 laravel 缓存驱动程序。我还看到缓存条目来自 6 个月前。这些删除 rm -rf storage/framework/cache 安全吗?

标签: laravel caching


【解决方案1】:

试试这个。在你的 cli 中运行它。

第一个

 redis-cli

第二次

flushall

【讨论】:

  • 还是一样。缓存似乎运行正常。
猜你喜欢
  • 2019-10-14
  • 2018-11-01
  • 2020-01-24
  • 2015-05-23
  • 1970-01-01
  • 2022-01-20
  • 2017-05-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多