为了存储缓存,我使用Redis。使用此命令后:
php artisan cache:clear --tags=tag
我看到以下错误:
我该如何解决?
最佳答案
我认为它与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.');
}