• Resolved powercliff

    (@powercliff)


    Hi,

    It is a very tiny bug:
    Due to some reason, I want my cloudflare cache sitemap xml files as well. However, after turned the function on, only $MYSITE/sitemap_index.xml will be cached (cache status : HIT), and other xml files, like $MYSITE/post-sitemap.xml, $MYSITE/page-sitemap.xml,etc, will not be cached (cache status: BYPASS).
    My sitemap files are generated by Yoast SEO.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @powercliff ,
    sitemaps should never be cached. By default the option Don’t cache the following static contents: XML sitemaps is turned on.

    If you want add in cache also the XML sitemaps, disable this option you find under Cache tab. Then wait some seconds and reload 2-3 times the sitemap using your browser. You should see Cache Status: HIT unless you have into your htaccess some rules which forces the cache bypass.

    Let me know

    Thread Starter powercliff

    (@powercliff)

    Hi @salvatorefresta ,

    I think it is related to a logical operators ‘&& ||’ bug,
    I just edited the file ‘cache_controller.class.php’:

    View post on imgur.com


    and all the sitemap files were cached as expected.

    • This reply was modified 5 years, 3 months ago by powercliff.
    • This reply was modified 5 years, 3 months ago by powercliff.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot cache all sitemap xml files’ is closed to new replies.