A WordPress site shows "Error establishing a Redis connection"
What to do when a site using the Redis cache suddenly reports it cannot reach Redis.
A WordPress site that was using Redis caching suddenly shows Error establishing a Redis connection. The Redis service can look healthy the whole time.
Steps
- Open the account (or ask the customer to open their own Databases page) and find the Redis object cache card.
- Click Turn off Redis, leaving also delete cached data unticked, then click Enable Redis again with the same memory limit. This starts the account's own Redis fresh and recreates the connection point WordPress uses.
- Reload the site.
- If it still fails, compare the path on the card with the
WP_REDIS_PATHline in the site'swp-config.php. They must be identical. A site copied from another account or server keeps that account's path, which does not work here.
Tip: if it keeps coming back after a fresh start, use Report a problem in the panel and say which other accounts had Redis switched on or off around that time. Protection of each account's Redis from the others is described on the customer's side in Turning on Redis caching.