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

10-02 08:45
查看更多