502 bad gateway when I make changes

What is the name of the domain?

What is the error number?

502

What is the error message?

Bad Gateway Cloudflare

What is the issue you’re encountering

When I make changes to my wordpress website, then delete the cache, I get this 502 on every page. I have to manually refresh every page individually to fix.

What steps have you taken to resolve the issue?

I have to manually refresh every page individually to fix.

What are the steps to reproduce the issue?

Delete the Cache in Wordpress dashboard.

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out. In most cases of 502 / 504 errors, back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway or Error 504 Gateway Timeout. Review this Community Tip for fixing 502 or 504 gateway errors.

This topic was automatically closed after 15 days. New replies are no longer allowed.