Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
For troubleshooting, please 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/
Then, remove all your submitted sitemaps and resubmit your /sitemap_index.xml
only to your Google Search Console.
Once done, give Google some time to recrawl your sitemaps. You can monitor the “Last read/crawl date” column in the sitemap index as it will update the date when Google crawls your sitemap.
Let us know how it goes. Looking forward to helping you.
Thank you.
Well I’m not using cloudflare or any caching plugin
Hi there,
Thanks for your reply. We can see that your sitemaps are working correctly so this shouldn’t be an issue from your end. However, we still recommend that you disable the Rank Math transient cache on your website. This will prevent any potential issues with your sitemap updates in the future.
To disable the transient cache, you need to add a small snippet of code to your website. You can copy the code below and paste it into your child theme’s functions.php file or use a plugin like Code Snippets.
/**
* 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 do this, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once you’ve added the code, you can go to your Google Search Console and remove your sitemap and then add it back. This will ensure that Google has the latest version of your sitemap.
We hope this helps and clarifies things for you. If you have any questions or issues, please let us know. We’re always happy to help.
Thank you for choosing Rank Math.
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.