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

Respect WP_REDIS_FLUSH_TIMEOUT #509

Closed yatsukhnenko closed 5 months ago

yatsukhnenko commented 6 months ago

If set use value of WP_REDIS_FLUSH_TIMEOUT when flush cache TODO: get/set timeout helpers should be added to Predis

Closes #510 Closes #508 Closes #514

yatsukhnenko commented 5 months ago

@tillkruss I tried to handle case when Redis cluster is used with predis and it looks like there is a lack of functionality in predis

Fatal error: Uncaught Predis\NotSupportedException: Cannot use 'EVAL' with redis-cluster. in /var/www/html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Cluster/RedisCluster.php:353
yatsukhnenko commented 5 months ago

Nevermind, there is no error when call eval directly on node