Title: Connection error fallback
Last modified: May 5, 2023

---

# Connection error fallback

 *  Resolved [KAUKY](https://wordpress.org/support/users/kauky/)
 * (@kauky)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/connection-error-fallback/)
 * 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](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/connection-error-fallback/#post-16714322)
 * 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.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/connection-error-fallback/#post-16714322)
 * Status: resolved