Cloudflare Error 524 on WordPress

Cloudflare closes the connection after 100 seconds. Long WordPress jobs — imports, backups, WooCommerce reports — exceed that even though they eventually finish.

Why it happens on WordPress

Cloudflare closes the connection after 100 seconds. Long WordPress jobs — imports, backups, WooCommerce reports — exceed that even though they eventually finish.

The fix on WordPress

Move long jobs to WP-Cron or a queue and return immediately. For admin-side imports, run them over a Grey-clouded (DNS-only) subdomain so Cloudflare's timeout does not apply.

If that didn't fix it

WordPress has its own failure mode, but Cloudflare Error 524 has a wider set of causes. The most common one overall is: A single request genuinely takes longer than 100 seconds.

Move the work to a background job and return immediately with a status the client can poll. Long synchronous requests are fragile regardless of the CDN.

Check your own domain

An external probe reports actual response time, which tells you how close normal requests are running to the limit before they tip over.

Frequently asked questions

Why does Cloudflare Error 524 happen on WordPress?

Cloudflare closes the connection after 100 seconds. Long WordPress jobs — imports, backups, WooCommerce reports — exceed that even though they eventually finish.

How do I fix Cloudflare Error 524 on WordPress?

Move long jobs to WP-Cron or a queue and return immediately. For admin-side imports, run them over a Grey-clouded (DNS-only) subdomain so Cloudflare's timeout does not apply.

What does Cloudflare Error 524 mean?

Cloudflare connected to the origin successfully, but the origin took longer than 100 seconds to send a complete response. The request is too slow, not unreachable.