Framework: Predis exception when running cache:clear

Created on 28 Jun 2013  路  1Comment  路  Source: laravel/framework

When I have redis specified as my caching driver, I get this error after running php artisan cache:clear:

[Predis\NotSupportedException]                    
Cannot use FLUSHDB with a cluster of connections

Laravel ships with cluster => true in the database config file. Maybe it should be false? Or maybe another approach needs to be used in RedisStore->flush()? I'm happy to work on a pull request if I could get the opinion of the core team on how they'd want to proceed.

Most helpful comment

If you're going to be flushing the DB just disable clustering.

>All comments

If you're going to be flushing the DB just disable clustering.

Was this page helpful?
0 / 5 - 0 ratings