
About the author
Hi, Iโm Edy Werder. I write hands-on guides about Proxmox, homelab servers, NAS, and WordPress, based on real setups I run and document.
No sponsors, no fluffโjust real configs and results.
Enjoying the content?
By Edy Werder โ IT Consultant & Tech Blogger
If you’re setting up Redis object cache on your WordPress site and using Cloudflare, you might run into a confusing error:
โError establishing a Redis connection: WRONGPASS invalid username-password pair or user is disabled.โ
This issue can appear even if your credentials are correct, Redis is reachable, and your configuration in wp-config.php looks perfect. I encountered this firsthand while configuring Redis object cache on a VPS with xCloud, and the root cause turned out to be Cloudflare’s proxy feature.

Redis Object Cache speeds up WordPress websites by storing frequently accessed data, like database queries and API responses, in memory instead of constantly querying the database. Redis is an in-memory key-value store, and when used as an object cache, it helps reduce server load and improve page load times.
WordPress typically enables this through a plugin like Redis Object Cache, which stores transients, query results, and other internal objects in Redis. Itโs especially useful for dynamic sites running on VPS or cloud infrastructure without built-in caching layers.

Setting your A record in Cloudflare to Proxied (orange cloud) before completing your server setup can interfere with how your site communicates with Redis. Specifically, WordPress Redis plugins like Redis Object Cache rely on direct server-to-server communication โ something Cloudflareโs reverse proxy setup can block or alter.

At the same time, Letโs Encrypt SSL certificates (which many setups rely on) may also fail to issue properly if Cloudflare is too early between your server and the Internet.
Cloudflare proxy vs DNS-only mode
Hereโs a breakdown of whatโs going on:
Hereโs the right order of operations to avoid a Redis object cache error with Cloudflare:
Set the A record for your domain to โDNS Onlyโ (gray cloud).

Redis caching is a powerful way to speed up WordPress, especially on VPS or cloud servers. But when paired with Cloudflare, timing matters. Proxying too early can break Redis authentication, block SSL issuance, and leave you chasing errors that arenโt really misconfigurations โ theyโre just order-of-operation problems.
Tip: If Redis breaks your site after enabling object caching, just delete in wp-content/object-cache.php to disable it and restore access.
I learned this the hard way โ now you donโt have to.
I’d love to hear from you. Was this article helpful? Share your thoughts in the comments below. If you prefer, you can also reach me by email or connect with me on Reddit at Navigatetech.
Hi, Iโm Edy Werder. I write hands-on guides about Proxmox, homelab servers, NAS, and WordPress, based on real setups I run and document.
No sponsors, no fluffโjust real configs and results.
Enjoying the content?