为了存储缓存,我使用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.');
}