Title: preloading cache from sitemap
Last modified: July 26, 2022

---

# preloading cache from sitemap

 *  Resolved [mammadz](https://wordpress.org/support/users/mammadz/)
 * (@mammadz)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/)
 * 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](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/#post-15858804)
 * Hello [@mammadz](https://wordpress.org/support/users/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](https://wordpress.org/support/users/mammadz/)
 * (@mammadz)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/#post-15858837)
 * Thank you.
 *  Thread Starter [mammadz](https://wordpress.org/support/users/mammadz/)
 * (@mammadz)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/#post-15862306)
 * 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, 11 months ago by [mammadz](https://wordpress.org/support/users/mammadz/).
 *  Plugin Support [Gergana Petrova](https://wordpress.org/support/users/gpetrova/)
 * (@gpetrova)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/#post-15863867)
 * Thank you for the update, [@mammadz](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Gergana Petrova](https://wordpress.org/support/users/gpetrova/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/preloading-cache-from-sitemap/#post-15863867)
 * Status: resolved