Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
The most possible reason can be that your sitemap is heavily cached. Can you please try following the steps below to 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/
3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once you’ve done following the above steps, please try re-submitting your sitemap_index.xml on GSC and allow Google a while to crawl your sitemap again.
Let us know how it goes. Looking forward to helping you.
Thank you.
Yes, looks fine now, thanks a lot,
just wondering, should we disable rank_math/sitemap/product/content function after the creation?
seems like its updating the file on each init hook load
Thanks!
Hello,
You should keep the filter there. As sitemap by Rank Math generates on the fly, it may not work once you remove the filter from your site.
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Sorry, it still doesn’t work, like we have updated the sitemap, but it doesn’t recrawl it and shows one url only
https://imgur.com/a/yoVvsqq
Tried to clear it with items per page + permalinks, re submit, etc
Thanks
Hello,
Please remove all the sitemaps from Google Search Console and submit only the primary sitemap (sitemap_index.xml). Google should automatically crawl its subsets. Kindly give it some time too for Google to recrawl the entire site.
Looking forward to hearing your update.
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.