• Resolved mammadz

    (@mammadz)


    I saw in another thread that you may be doing some cache preloading based on the sitemap. Does that happen automatically? Do I need to trigger it somehow?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Simeon Boev

    (@k3llanved)

    Hello @mammadz,

    We crawl the website sitemap after each cache flush and generate cache for the URLs listed. Note that there is a limit of 200 URLs, so if the sitemap contains more than 200 URLs cache will not be generated for all of them. A filter can be used to modify the preheat URL limit.

        add_filter( 'sg_file_caching_preheat_url_limit', 'sgo_preheat_limit' );
        function sgo_preheat_limit( $xml_urls ) {
            // Define custom limit for XML URL preheat.
            $xml_urls = 300;
    
            return $xml_urls;
        }

    Note that in order for the preheat to work the WordPress default cron job needs to be enabled. It will not work with a real cron job.

    Best Regards,
    Simeon Boev

    Thread Starter mammadz

    (@mammadz)

    Thank you.

    Thread Starter mammadz

    (@mammadz)

    Is there anyway I can validate the preheating? Like seeing the logs? I’m pretty convinced that my cache is not preheating after a flush. At least not all pages. I have about 327 pages in my sitemap and I set the limit to 350.

    • This reply was modified 2 years, 4 months ago by mammadz.
    Plugin Support Gergana Petrova

    (@gpetrova)

    Thank you for the update, @mammadz.

    Could you please provide us with the domain name of the site and a couple of example pages for which you believe the Preheating is not working.

    If you’re a SiteGround customer, please submit a support ticket from your Client Area, providing this topic as a reference and again a few example pages. This will allow our team to double-check your configuration and review the server’s logs if needed.

    Best Regards,
    Gergana Petrova

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘preloading cache from sitemap’ is closed to new replies.