• My sitemap.xml generated by Yoast is not updating anymore since I installed W3 Total Cache.

    I’ve added https://www.lindholmfoto.ch/sitemap_index.xml to Cache Preoload. Non-trailing slash pages has to following entries:
    sitemap(_index)?\.xml(\.gz)?
    ([a-z0-9_\-]+)?sitemap\.xsl
    [a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?

    I’ve tried disabling (save) and enabling (save) XML sitemaps in Yoast. Still, the pages in the sitemap are old and no longer in wordpress.

    What can I do? I

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there. I’ve always been baffled by the “non-trailing slash pages” box since in code, unless i am missing something, doesn’t do anything. I will have to return and figure out in more detail why the box is even there and wire it up. I get a sense that box, in its present form, is simply a place holder for future development.

    Anyway, under the “Never cache the following pages” (of Page Cache) add:
    [a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html?)(\.gz)?

    You will want to empty your cache once set.

    Regards,
    Kimberly

    • This reply was modified 8 years, 5 months ago by Kimberly.

    Hey @lindholmfotografie,

    Out of curiosity, are you using something other than enhanced disk-cache (example: memcached) as your page cache engine?

    There’s a bug with the sitemap flush that I’ve identified and fixed here: https://github.com/szepeviktor/fix-w3tc/issues/75

    Thread Starter lindholmfotografie

    (@lindholmfotografie)

    Hi Kimberly,

    Thanks for your very fast supply. Your suggestion seems to work fine. You saved my day!

    It would saved me hours of work, had this been mentioned in the manual for W3 Total Cache. I think, it should even be filled in be default.

    Best regards,
    Goeran

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yoast Sitemap not updating with W3 Total Cache’ is closed to new replies.