Hello,
We apologize for the issue you are facing with your sitemap not updating. Since you’ve already tried flushing the website cache and re-adding the sitemap, here are a few additional steps you can take to troubleshoot this issue:
-
Flush Permalinks: Sometimes, simply saving the permalinks can help. Go to Settings → Permalinks in your WordPress dashboard and click Save Changes without making any changes.

-
Check Sitemap Settings: Ensure that all post types you want to include in the sitemap are enabled. You can check this by going to Rank Math SEO → Sitemap Settings.
-
Increase Links Per Sitemap: Navigate to Rank Math SEO → Sitemap Settings, increase the value of Links Per Sitemap by one, and save your settings. This can help refresh the sitemap.

-
Exclude Sitemap from Caching: Make sure that your sitemap is excluded from any caching mechanisms. You can refer to this article for guidance on how to do that: Ensure that your sitemaps are excluded from caching.
-
Check for Plugin Conflicts: Sometimes, other plugins may conflict with Rank Math. You can use the Health Check plugin to identify any potential conflicts.
If these steps do not resolve the issue, we recommend replying to your ticket with any additional details or errors you might encounter, and a human agent from the Rank Math 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
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please ensure that you are using the latest version of Rank Math plugin. If not yet, please do update them. You may refer to our changelog page here: https://rankmath.com/changelog/
Then, please follow the steps below:
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. Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
4. Remove all your sitemaps from your Google Search Console and re-submit only the index sitemap (https://website.com/sitemap_index.xml
)
Let us know how that goes. Looking forward to helping you.
I have already tried these solutions, but the issues remain the same. I have Changed my DNS from Cloudflare to my Hosting provider. Is this causing the issue may be ?
Hello,
Could you please share the affected URL/s so we can check?
We’ve checked your sitemap, and it seems that your post sitemap already contains your latest post.
Meanwhile, here’s a guide for some common reasons why a URL is not included in the sitemap:
https://rankmath.com/kb/url-not-in-sitemap/
Looking forward to helping you.
Thanks for the help, the issue is resolved I just added the filter in my theme editor
Hello,
We’re delighted to hear that this issue has been resolved. We appreciate your feedback.
This ticket will be closed now, but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you again.
Thank you.