host and password not propagated to object-cache.php?

Hi, I have a WordPress blog. It’s set up using Docker, with these images: wordpress:latest and redis:alpine.

I have installed the “Redis Object Cache” plugin, and I have edited my wp-config.php file to include WP_REDIS_HOST and WP_REDIS_PASSWORD. I can click the “Enable Object Cache” button. When I do, I get this error: Connection refused [tcp://].

I’ve been able to fix this by manually editing the wp-content/object-cache.php file: the host was wrongly set to, and no password variable was set. Things work fine after I manually modify these settings.

Is this a known issue? Please let me know if you need more details.

Thank you.


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