Graceful fallback if the Redis module is disabled?
-
Hi – Recently we were doing some troubleshooting on a server, and one of the server admins temporarily disabled the Redis cache module. I did not know this at the time and was editing some settings in W3 Total Cache. When I attempted to save the settings and purge the caches, I was met with a ‘WordPress has encountered an error on your site’ message.
When I checked the corresponding email, I saw this detailed message:
An error of type E_ERROR was caused in line 348 of the file /home/REMOVED/public_html/wp-content/plugins/w3-total-cache/Cache_Redis.php. Error message: Uncaught Error: Class ‘Redis’ not found in /home/REMOVED/public_html/wp-content/plugins/w3-total-cache/Cache_Redis.php:348
While this is not likely to be a common situation, you might consider adding a way to gracefully recover from this situation without triggering a technical issue email. Maybe just display a notice in the admin area?
- The topic ‘Graceful fallback if the Redis module is disabled?’ is closed to new replies.