Support » Plugin: Cache Enabler - WordPress Cache » Bypass Cache Enabler for xml sitemaps

  • Resolved kyoshiromibu


    For some reason, the plugin caches the xml sitemaps. Yes, I’ve checked and the CE comment shows in the sitemap file

    <!– Cache Enabler by KeyCDN @ 31.07.2018 17:32:02 (html gzip) –>

    I’m using the Seopress plugin to generate the sitemaps.

    Any thoughts on this?

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Is Cache Enabler currently disabled on your site? I checked your site’s page source however do not see the CE comment.

    I had to disable it and revert back to WP Super cache, which doesn’t cache the xml sitemaps generated by Seopress. Nothing else was changed in terms of additional plugins added or removed.

    Two things I’ve noticed:

    1. On my other sites, I use Yoast SEO with cache enabler. No problems with the XML sitemaps being cached.

    2. The advanced configuration, which I’m always using with cache enabler for Apache, is slightly different on your end. For Nginx, you have an explicit sitemap bypass in the config. I didn’t notice one for apache.


    Have you tried testing this without using the advanced config? We typically recommend using the default configuration as the performance savings are rather marginal.

    Sorry. I should’ve mentioned that in my original post.

    Tested it with and without the advanced config. In both tests purged:
    1. KeyCDN Cache.
    2. Cloudflare cache.
    3. CE cache.
    4. Object cache.
    5. Restarted apache/phpfpm/memcached

    Also tried it with Cloudflare Development mode on.

    Both results were the same:
    Incognito mode in a test browser.
    First access of sitemap is fine. Second access the sitemap is cached.

    WP Super cache has the option to exclude sitemaps. The regular expression that I’m using is:

    Thanks for the additional info. We’re also looking into adding a feature to exclude pages by path which should resolve this issue. In the meantime, I will notify the developers about this.

    Plugin Author keycdn


    This is now possible in v1.3.0.

    Thanks. Saw that in the changelog when I downloaded the new version. Took a few tries, because the regex is set to page paths, but I managed to get it to work.

    Jason Chong


    Can you please clarify for me exactly what I need to write and where to exclude the sitemaps. Thanks!

    @dantianhealth please open a separate support thread for your question.




    Hi there,

    I am experiancing this same issue and have opened a seperate thread here:

    I am struggling with the Regex to exclude these pages. Can you lend any guidance?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Bypass Cache Enabler for xml sitemaps’ is closed to new replies.