Hello @masouddarvishi1992,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please make sure you’re using the latest version of the Rank Math plugin on your website: https://rankmath.com/changelog/
Once done, please 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/
3. If the above steps don’t seem to work, kindly apply the following filter 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/
Let us know how it goes. Looking forward to helping you.
@rankmathteam
Excellent. The problem was fixed.
Thank you
Hello @masouddarvishi1992,
Glad that we could help resolve the issue.
If it isn’t too much to ask for – would you mind leaving us a review here?
https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post
It only takes a few minutes but makes a huge difference.
Thank you.
Thank you so much, @masouddarvishi1992!
We sincerely appreciate that.
Please feel free to reach out to us in case you need any assistance. We’re just an email away.