Hello,
We apologize for the issue you are facing with your sitemap not updating after publishing your new blog. There could be several reasons for this problem. Here are some steps you can take to troubleshoot and potentially resolve the issue:
-
Check if Posts are Set to Index: Ensure that your posts are set to index. If all your posts are set to noindex, the sitemap will not include them. You can check this by going to Rank Math SEO → Titles & Meta and ensuring the Index checkbox is enabled for your posts.

-
Flush Permalinks: Sometimes, flushing permalinks can help. Go to the Permalinks settings in your WordPress dashboard and click Save Changes without making any changes. This can refresh the sitemap generation process.
-
Exclude Sitemap from Caching: If you have caching plugins installed, ensure that your sitemap is excluded from being cached. Caching can sometimes prevent the sitemap from updating correctly. You can find guidance on how to exclude sitemaps from caching in our tutorial.
-
Check for Plugin Conflicts: There may be a conflict with another plugin that is affecting the sitemap generation. You can use the Health Check plugin to identify any conflicts.
-
Review Robots.txt File: Ensure that your robots.txt file is not blocking access to your sitemap. You can check this in Rank Math SEO → General Settings → robots.txt.
If you’ve tried these solutions and the issue persists, we recommend replying to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we hope to help you resolve it soon!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
If you manage to resolve this case, please let me know. I can consider a backup plan.
Hello,
In this case, 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/
Also, head over to your website files /uploads/rankmath/, and delete any XML files from that path.
Looking forward to helping you.
Thank you very much ,You’ve restored my faith in RankMath.
Hello,
Glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.