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
427 stars 149 forks source link

Update object-cache.php #447

Closed NizarBlond closed 1 year ago

NizarBlond commented 1 year ago

you may want to add WP_REDIS_USERNAME or keep WP_REDIS_PASSWORD as array.

also, you could do basically eliminate this loop:

    foreach ( [ 'WP_REDIS_SERVERS', 'WP_REDIS_SHARDS', 'WP_REDIS_CLUSTER' ] as $constant ) {

and the whole thing will work without my changes.