Connection error fallback | WordPress.org

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer