Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shadrix's avatar
Level 12

Redis: Usually you are renaming the command 'FLUSHDB'. What should I do, when I set cache to redis?

In Laravel, you can set the cache to Redis. However, when I clear the cache with php artisan cache:clear, I get the error: ERR unknown command 'FLUSHDB'

Obviously, because I renamed the command (it's best practice).

But now I'm confused. I cannot use Redis in this case. Should I rename it back so I can use Redis as cache?

0 likes
0 replies

Please or to participate in this conversation.