Docs / Cache / Cache Pages

Cache Pages

When you enable 'Cache Pages' FlyingPress will generate static HTML for each page. These static pages will be served next time instead of dynamically building pages using PHP, WordPress, database etc.

When Cache is Generated

The static HTML page cache is generated by preloading each URL in the sitemap (sitemaps are automatically detected).

If the page isn't preloaded yet and someone visits the page, static HTML is generated instantly.

When to Disable Caching

If you have an external caching layer, it's better to turn off the FlyingPress cache to prevent conflicts.

In case you want to use both caching layers, make sure to purge the external caching layer first, then the FlyingPress cache.

Why Preloading Cache is not Working

Few cases in which preloading cache won't work:

  • Sitemap is disabled
  • Site is under HTTP authentication
  • Disabled search engine visibility

Check Cache is Working

The Dashboard will show the number of pages FlyingPress has cached.

To check whether cached pages are served or not, check for the response header.

Open your site from an incognito window and open the network panel (Mac - Cmd + Opt + I, Window/Linux - F12 or Control+Shift+I) and reload your site.

Now click on the first request (HTML page) and look for the response header.

Cache Header is Missing or Cache is always MISS

  • You have an external caching layer (like Cloudflare page caching/APO, server caching from hosting provider)
  • Your web server doesn't support mod_headers (in some OpenLiteSpeed and Apache installations)