Closed delitestudio closed 1 year ago
We're aware.
Ok, thanks for the reply! So, just to understand, it's something that will be fixed in the next releases?
The next release will show you "Uncaught RedisException: Connection refused" very clearly, but your issue is that you need to ensure Redis Object Cache is configured to talk to Redis, which is doesn't appear to be.
Sorry, not sure I understand. So it's not a problem with the plugin Redis Object Cache, but some error on our side?
Correct.
Not sure, because with previous versions of the plugin it didn't happen... In general I believe that an exception of that type should be handled gracefully, not through a fatal error... Don't you?
Analyzing the source code it could be due to this recent change in the includes/object-cache.php
file, from:
public function __construct( $fail_gracefully = true ) { ... }
to:
public function __construct( $fail_gracefully = false ) { ... }
Perhaps setting this define into the wp-config.php
might solve the problem?
define( 'WP_REDIS_GRACEFUL', true );
Thanks?
With the latest version of Redis Object Cache (v2.3.0), an unhandled exception is thrown in case of database connection problems:
This brings up the WordPress error screen instead of the more correct
db-error.php
. It didn't happen with previous versions.