What Does Cache Do Actually?

I thought when caching was turned on, my visitors would still be able to see the most recently saved pages from Cloudflare rather than seeing an outage.

My webhost went down at 9:10 and literally 9 minutes later, I’m getting messages from people who can’t view my sites…and I can’t view them either.

Your concept of caching is right. However, there are a few key elements that you missed.

  1. The cached content does not last forever in the nodes; they might get “erased” at any time.
  2. Dynamic content is never cached. Almost all sites have dynamic content, in fact, HTML is considered dynamic as its not cached by default. You could work around this and cache it, however, you must be careful as you could desync your site content and get odd results.
  3. You might be interested in Cloudflare always online. To be fair, it can be helpful in some scenarios



Thanks for the details. I realized caching could only last for a finite amount of time, but I just thought surely it would give the impression the site was still up and running for more than 10 minutes.

In my case, one site is pmwiki-based and the rest are Wordpress. They were all completely dead and showing “host offline,” not just partially loading.

I’ll check out Always On.

You may consider using Automatic Platform Optimization for WordPress: https://developers.cloudflare.com/automatic-platform-optimization/

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.