• Resolved Bettina

    (@bettinag)


    Hi,

    in my sitemap are posts shown, that are deleted some weeks ago.

    I’ve added the following code to rank-math.php:

    `/**
    * Filter if XML sitemap transient cache is enabled.
    *
    * @param boolean $unsigned Enable cache or not, defaults to true
    */
    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    … cleared the cache and added this into cache plugin:

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

    But the sitemap is not updated as expected.

    Can you give he a hint, what to do?

    Thx, Bettina

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @bettinag,

    Thank you for contacting the support and we regret the inconvenience caused.

    Could you confirm which caching plugin are you using?

    Please follow the below steps and see if that fixes the issue:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. Clear your website’s cache and browser’s cache and check the sitemaps again.

    In case the issue persists, please share a few affected URLs so that we can investigate further.

    Looking forward to hearing back from you.

Viewing 1 replies (of 1 total)
  • The topic ‘sitemap – shows deleted posts’ is closed to new replies.