• Resolved dave8441

    (@dave8441)


    In the “Never cache the following pages:” area, I entered this:
    */product_cat-sitemap.xml

    In the Browser Cache settings in the “Prevent caching exception list” area, I entered this:
    [a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?

    But I see this at the page bottom:
    Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/
    Page Caching using disk: enhanced
    Minified using disk
    Served from: doyleshamrock.com @ 2019-10-03 16:03:00 by W3 Total Cache

    Apparently the sitemap is still being cached. How do I prevent this?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dave8441
    I am sorry about the issue you are having with the cached sitemap and I am happy to assist you with this.
    If you have “Do not process 404 errors for static objects with WordPress” enabled in Performance>Browser Cache, you should add the following:

    sitemap(_index)?\.xml(\.gz)?
    [a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?
    ([a-z0-9_\-]*?)sitemap([a-z0-9_\-]*)?\.xml

    to “404 error exception list:”
    If Minify is enabled you should also add this to “Never minify the following pages:” setting under Performance > Minify > Advanced (section)
    I hope this helps!

    Thread Starter dave8441

    (@dave8441)

    Thanks Marko, all fixed now.

    In addition, in the “Never cache the following pages:” area, my code “*/product_cat-sitemap.xml” did not stop the caching. So I replaced my code with yours and that did the trick.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dave8441

    I am glad to know it’s working for you!
    We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users. Thank you for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to stop sitemap caching’ is closed to new replies.