• Resolved beretgz



    Rank Math SEO is the best, thanks for your work

    There is a problem with the XML sitemaps generator.
    When editing any post or adding a new post, the XML sitemaps generator removes absolutely all site cache created by the W3 Total Cache plugin.

    As soon as I turn off the XML sitemaps generator module in the Rank Math SEO plugin, the problem is immediately resolved.

    Important note: in order not to delete the cache when editing a post, you need to change the W3 Total Cache Performance settings> Page Cache> Page Cache: Purge Policy> remove all marks. With such settings, without a sitemaps XML generator, the site cache is not deleted when editing or adding a new post. But the XML sitemaps generator deletes all cache when turn on. Could you fix this problem?

    By the way, here we have already addressed the same problem https://support.rankmath.com/ticket/w3-total-cache-upon-edit-post-rank-math-purge-all-the-caches/

    But the support couldn’t help. And in the end, they just turned off the module and used a third-party plugin to create a sitemap

    • This topic was modified 10 months, 1 week ago by beretgz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The same problem

    Plugin Author Rank Math


    Hello @beretgz,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    By default, we cache the Sitemap and when someone updates any post or adds a new post we clear our in-built Sitemap cache and the ones cached by the Cache plugins like W3 Total, Litespeed, etc.

    That is needed without it the Sitemap will not update.

    One way to avoid this is by disabling the Sitemap cache using the following filter:
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XML Sitemap and Cache’ is closed to new replies.