Sitemap not updating automatically

#806554
  • Resolved Anonymous
    Rank Math free

    Hi,

    We noticed that the sitemap is not updating automatically when we make updates. This was caught when performing an audit in Search Console. Wondering if you can help us get this fixed. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please share the sitemap URL so we can check as well?

    Meanwhile, please follow these steps to flush your sitemap cache:

    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. 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/

    Looking forward to helping you.

    Anonymous
    Rank Math free

    Thank you for the reply. The sitemap is located here.

    https://vermontvacation.com/sitemap_index.xml

    In the meantime, I’ll work to clear the cache from my end.

    Best,

    Brad

    Hello,

    We can see that the sitemap is already showing but we still recommend that you follow the steps on the tutorial we shared to make sure this doesn’t happen again.

    For most websites, we recommend using the transient option from the article.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    Which option is the transient option? Is that the option of creating the rankmath.php file and pasting the code there? Thanks.

    Hello,

    Yes, that is correct. That is the number 3 option. That option disables the transient cache for the sitemap.

    We hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Sitemap not updating automatically’ is closed to new replies.