Error establishing a Redis connection when clearing Object Cache
-
Message:
Hello,We are using the Object Cache Pro plugin on our WordPress website, and occasionally, when clearing the cache, we see the following error message:
Error establishing a Redis connection
It doesn’t happen every time, but it appears intermittently during cache clearing. Could you please advise what might cause this and how we can prevent it from happening?
My wp-configdefine( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
// change the prefix and database for each site to avoid cache data collisions
define( 'WP_REDIS_PREFIX', 'my-site' );
define( 'WP_REDIS_DATABASE', 0 ); // 0-15
// reasonable connection and read+write timeouts
define( 'WP_REDIS_TIMEOUT', 1 );
define( 'WP_REDIS_READ_TIMEOUT', 1 );
define('WP_REDIS_CLIENT', 'phpredis');
define('WP_REDIS_DISABLED', false);
define('WP_REDIS_MAXTTL', 3600);
define('WP_REDIS_CONNECT_PERSISTENT', false);
define('WP_REDIS_DISABLE_GROUP_FLUSH', true);Thank you in advance for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.