Sitemap not able to auto update

#39440
  • Resolved Cheefoo
    Rank Math pro

    I notice sitemap does not auto update if i add a new post or made changes to pages url. The sitemap shows old data. Looks like a bug.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Cheefoo,

    Thanks for getting in touch with us.

    ​1. Please delete the sitemaps from the Google Search Console.
    ​
    ​2. Clear your website cache and add sitemap_index.xml and *-sitemap.xml to the exclusion list in your Cache plugin.
    ​
    ​3. Add sitemap_index.xml file again to your Google Search Console.
    ​
    ​That should do the trick.
    ​
    ​Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Even when if disable the W3 Cache plugin, the sitemap still shows only 4 posts. Looks like a bug to me.

    I look through your knowledage base, it looks like there’s a number of sitemap issues. Please help to escalate this issue as a high priority.

    Todd
    Rank Math free

    Hi,

    If you look at the page source of that sitemap, you will notice that it is still being cached:
    https://i.rankmath.com/JviS18

    Please try to add the exact file names in the exclusion list and see if that works:
    post-sitemap.xml
    page-sitemap.xml

    You can also disable Rank Math’s in built cache and see if that works:

    /**
     * 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', 'false');
    

    Finally, share a link to the posts that aren’t included and do note that posts/pages that are set as noindex will not be included in the sitemaps.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Where should I add to disable Rank Math’s in built cache ?

    Which section of W3 exclusion list to be added?

    This url is not added to post: https://www.connectbit.com/cloud-file-sharing/

    Hello,

    Thank you for contacting Rank Math today.

    Where should I add to disable Rank Math’s in built cache ?
    This code should go in your theme’s functions.php file.

    Which section of W3 exclusion list to be added?
    Please add the exclusions to pages that should never be cached on this plugin’s settings.

    Looking forward to helping you. Thank you.

    ​​​​​​

    It looks fine after adding these url to w3 cache “Never cache the following pages” if you’re using page cache.

    sitemap_index.xml
    post-sitemap.xml
    page-sitemap.xml

    Hope this help anyone facing similiar issues.

    Hello,

    Thank you for contacting Rank Math today.

    I am glad that you were able to fix this πŸ™‚

    Feel free to contact us should any other problems come up. Thank you.

    ​​​​​​

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Sitemap not able to auto update’ is closed to new replies.