1

To store cache I use Redis. After using this command:

php artisan cache:clear --tags=tag

I see the error below:

Failed to clear cache. Make sure you have the appropriate permissions

How can I fix it?

1 Answer 1

1

I think it issue related to this issue in github

To fix it you can change Illuminate\Cache\Console\ClearCommand.php

from

if (! $successful) {
    return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}

to

if ($successful === false) {
    return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.