• Resolved KAUKY

    (@kauky)


    If Redis-server goes down the website return a fatal error “Uncaught Predis\Connection\ConnectionException: Connection refused … thrown in /wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php on line 131”.

    My question is: there is a way to check if connection to redis is not available then switch off the object-cache (and avoid the fatal error), like a fallback logic?

    I tried to use WP_REDIS_TIMEOUT parameter but it does’t work.

    Thanks for your support

Viewing 1 replies (of 1 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Hey!

    Just like with your MySQL server, the object cache must be connected at all times, if not you risk the cache going stale and that stale cache data might get written back to SQL which causes data loss.

    You can use WP_REDIS_GRACEFUL but we discourage using it.

Viewing 1 replies (of 1 total)

The topic ‘Connection error fallback’ is closed to new replies.