rhubarbgroup / redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
https://wordpress.org/plugins/redis-cache/
GNU General Public License v3.0
425 stars 148 forks source link

Fix Predis cluster flush #529

Closed yatsukhnenko closed 2 months ago

yatsukhnenko commented 3 months ago

Fixes #527

CLI command uses Predis client to flush cache after enable/disable plugin. Changes in this PR allows to proper iterate over cluster nodes and execute flushdb command.