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
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 3 years, 10 months ago by
mammadz.
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