Support » Plugin: WP Cloudflare Super Page Cache » Cache preload functioning

  • Resolved bluisier

    (@bluisier)


    Hi,

    I just have a small question to understand the cache preload functionality a bit better. I added a few Sitemaps containing maybe up to 800 links in the space available. Do the cache preloader preloads all the urls available in the sitemaps or there is a limit (I read about a max limit of 50 in a support thread that can be customized if necessary).

    If an url has been preloaded, does it mean that even the 1st person to request that page will get a cached version from all around the world?

    thanks for your help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi @bluisier,

    I added a few Sitemaps containing maybe up to 800 links in the space available.

    Technically you can preload all those 800 links. But the problem is that the preloader uses cURL which will eat some server resource for the preloading. That is why the default limit is 50 to ensure the preloader doesn’t overwhelm your server and eat resources. But if you have more resources to spare you can use the SWCFPC_PRELOADER_MAX_POST_NUMBER constant to increase the number of items to preload. I’ve already explained that in this support thread: https://wordpress.org/support/topic/swcfpc_preloader_max_post_number/#post-13437448

    I will also highly encourage you to checkout the FAQ Tab in the plugin settings as you will get most of your question answered there. After that also check these threads about the preloader which might also be helpful:
    https://wordpress.org/support/topic/control-over-preload-speed/
    https://wordpress.org/support/topic/preloader-strategy/

    does it mean that even the 1st person to request that page will get a cached version from all around the world?

    If you have fallback cache enabled, after you flush your whole cache, the preloader will start hitting all the pages in it’s queue via cURL now at this point for the first request the fallback cache will get generated for that page. It may also get cached in Cloudflare cache but that is hard to say as Cloudflare sometimes don’t cache a page if the request has been generated by cURL and only catches it if the request comes from a proper browser.
    But no matter what the case is, lets say CF don’t catch your page on the 1st request but fallback cache has been generated for that page as soon as the preloader hits that URL. So, fir the second request that comes from a legit browser, the cf-cache-status might be missed but the user gets the fallback cache version of the page. At this point, the CF has definitely cached the page in it’s CDN (sometimes CF takes some time to cache pages) and from this point on forward the response comes from CF CDN server.

    Hope this helps 🙂

    Thread Starter bluisier

    (@bluisier)

    Thanks a lot for the amazing support. It couldn’t be clearer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache preload functioning’ is closed to new replies.