Sitemap not refreshing

#1107627
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with your sitemap not refreshing. Here are a few steps you can take to troubleshoot this problem:

    1. Flush the Cache

    If your sitemap appears outdated, you may need to flush the sitemap cache. To do this:

    • Navigate to Rank Math SEO → Sitemap Settings.
    • Increase the value of Links Per Sitemap by one and then click Save Changes.

    Increase links per sitemap

    • After that, go to Settings → Permalinks and click Save Changes to ensure the current settings are applied.

    Flush Permalinks

    2. Exclude the Sitemap From Caching

    Ensure that your sitemap is not being cached by any caching plugins. You can refer to this article on how to exclude sitemaps from caching.

    3. Check Sitemap Configuration

    Make sure your sitemap is correctly configured:

    • Validate your sitemap using the Validate XML Sitemap tool.
    • Ensure that your posts are set to index in Rank Math SEO → Titles & Meta.

    4. Resubmit Your Sitemap

    After making these changes, resubmit your sitemap URL to Google Search Console. Make sure there are no spaces in the URL when submitting.

    If you have followed all these steps and the issue persists, please reply to this ticket with any additional details or errors you might be encountering, and a human agent from our support team will assist you further.

    Thank you for raising this concern!

    Sources:
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We checked your sitemap and we can see it is working properly without any issues:

    In this case, please try to follow the steps below and see if that works for you:

    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/

    Once done, clear your website cache, remove all the submitted sitemap, and resubmit only the /sitemap_index.xml in the Search Console.

    Regarding the Noindex issue, please note that sitemaps are by default set to Noindex as they are meant to be crawled and not to be displayed on search results pages.

    You should only submit your sitemap to the sitemap section of your GSC account:
    https://rankmath.com/kb/submit-sitemap-to-google/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Thijm
    Rank Math free

    Hi, thanks for your reply.

    I followed all the steps but sitemap is still not refreshing after new posts have been added. Last refresh date was more than a month ago.

    Looking forward to your reply.

    Hello,

    In this case, disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:

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

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Then, head over to your website files /wp-content/uploads/rankmath/, and delete any XML files from that path.

    If the issue persists, try updating the plugin to the beta version, as we have included a fix for sitemap caching issues.

    Here’s a guide you can follow:
    https://rankmath.com/kb/version-control/#beta-updates

    Let us know how this goes.

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

You must be logged in to reply to this ticket.