Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We’ve checked your sitemap and we can see it is working properly without any issues.
In this case, you can 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 and resubmit the /sitemap_index.xml
in the Search Console.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello, I cleared the caches from light speed caches and add the code in the exclude box. Still the issue is sams
Hello,
Thank you for your patience.
Your /robots.txt contains your post-sitemap as well.
You can remove it as the sitemap index is only needed as recommended here in our default rules:
https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/#default-rules
Also, if the issue still persists, then try disabling the transient cache for the sitemap. 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/
Let us know how this goes.
Hi, Thanks for the help. Yojoke Sitemap has been fixed by disable the rank math plugin and then activate again. May be there is some caches issues in Rank math.
Hello,
I am glad that it is sorted out now.
To make sure that our sitemap is free of cache, you may also apply the filter code my colleague shared.
Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.