• Resolved pinoooo

    (@pinoooo)


    The preheat function is working well on my site if I manually flush the cache: all pages are preloaded.

    After 12 hours the cache is flushed automatically, but not all pages are preloaded again (Maybe all).

    Headers look like this at that moment:

    1. Verzoekmethode: GET
    2. Statuscode: 200
    3. Extern adres: 35.214.192.227:443
    4. Verwijzersbeleid: strict-origin-when-cross-origin
    5. Koppen van reacties
      1. content-encoding: br
      2. content-type: text/html; charset=UTF-8
      3. date: Mon, 08 May 2023 07:02:54 GMT
      4. host-header: 6b7412fb82ca5edfd0917e3957f05d89
      5. server: nginx
      6. strict-transport-security: max-age=31536000; includeSubDomains; preload
      7. vary: Accept-Encoding
      8. x-cache-enabled: True
      9. x-content-type-options: nosniff
      10. x-httpd-modphp: 1
      11. x-proxy-cache: EXPIRED
      12. x-proxy-cache-info: 0 NC:000000 UP:
      13. x-xss-protection: 1; mode=block

    And in the /cache/sgo-cache/ folder not all pages are present.

    And sometimes they look like this:

    Verzoekmethode: GET
    Statuscode: 200
    Extern adres: 35.214.192.227:443
    Verwijzersbeleid: strict-origin-when-cross-origin
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Sun, 07 May 2023 07:48:29 GMT
    host-header: 6b7412fb82ca5edfd0917e3957f05d89
    server: nginx
    sg-f-cache: HIT
    strict-transport-security: max-age=31536000; includeSubDomains; preload
    vary: Accept-Encoding
    x-httpd-modphp: 1
    x-proxy-cache: MISS
    x-proxy-cache-info: 0 NC:000000 UP:

    Do you have any idea why it works with a manual flush, but not with an automatic flush?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gergana Petrova

    (@gpetrova)

    Hello @pinoooo,

    We haven’t had any similar reports for discrepancies between the number of preloaded pages when using Manual and Automatic purge.

    When the Preheat option is enabled we crawl the website sitemap after each cache flush, regardless if it’s manual or automatic, and generate cache for the URLs listed in it.

    Note that there is a limit of 200 URLs, so if the sitemap you’re currently using 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;
    }


    Please consider contacting our team through your SiteGround’s Client Area, as the reported issue would require recreating both the manual and the 12 hour automatic purges, in order to compare the generated cached pages.

    Best Regards,
    Gergana Petrova



    Plugin Support Gergana Petrova

    (@gpetrova)

    Hello @pinoooo,

    We can see that you already contacted our team from your Client Area and your inquiry has been addressed.

    Therefore we will mark the topic here as Resolved. You will still be able to post new replies, should additional questions arise.

    Best Regards,
    Gergana Petrova

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preheat – Cache Expired or missed’ is closed to new replies.