拉拉维尔中的 redis 问题



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

最新更新