为了存储缓存,我使用 Redis。使用此命令后:
php artisan cache:clear --tags=tag
我看到以下错误:
Failed to clear cache. Make sure you have the appropriate permissions
我该如何解决?
最佳答案
我认为它与 github 中的这个问题相关
要修复它,您可以更改 Illuminate\Cache\Console\ClearCommand.php
来自
if (! $successful) {
return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}
到
if ($successful === false) {
return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}
关于php - laravel 中 redis 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52432109/