Closed ThomasTr closed 1 year ago
I did a little more research: Redis was not connected on my dev machine where I tested the update, because WP_REDIS_PATH had the settings from the prod server.
Version 2.3.0 throws an error here. The previous version 2.2.4 does not throw an error and shows "not connected".
After I adjusted the setting for WP_REDIS_PATH on my DEV machine, and Redis was connected, I was also able to update to 2.3.0. this version now also runs without errors.
If this is the desired behaviour, we can also close this issue.
Yes, the socket configuration was very loose in 2.2.x and prior. Yesterdays release made it stricter to avoid accidental connections like yours.
From wp.org:
If you look at the changelog, yesterdays version 2.3.0 introduced a new change:
Throw errors when connection error occurs
Made Predis unix socket connections stricter
Prior to v2.3.0 when Redis Object Cache could not connect to Redis it would sometimes silently fail or fallback to
127.0.0.1
even whenWP_REDIS_PATH
was configured to connect to a socket.So in short, v2.3.0 is not broken, you Redis Server is and you need to check your configuration.
Previous version 2.2.4 worked fine. After installing the new object-cache.php i got this error: Error: Fatal error: Uncaught RedisException: No such file or directory in /xxx/public/wordpress/wp-content/object-cache.php:726 Stacktrace:
Using phpredis 5.3.4 with php 8.1.16