Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
I’ve checked your sitemap, and it seems to be working fine. Please refer to the screenshot attached in the sensitive data section as well.
Could you please confirm where are you seeing the code you have sent?
Looking forward to helping you.
Thank you.
Hi I excluded the sitemaps from caching and that worked but the html sitemap has stopped updating. See the link to the page in the sensitive section
Hello,
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.
Thank you.
OK the flushing and permalinks save worked but I remember doing this the first time I had similar issue but now I have to keep doing every time this happens or is there a permanent fix?
Hello Isaac,
I’m glad to hear that the flushing of your sitemap and resaving of your permalinks worked for you. However, I understand that it can be frustrating to repeat this process every time the sitemap issue occurs.
One possible reason for this issue is that your sitemap is being cached by your caching plugin or server. This can prevent the sitemap from updating correctly and cause errors.
To prevent this, you need to exclude the sitemap files of Rank Math from being cached. You can do this by following the instructions in this article: https://rankmath.com/kb/exclude-sitemaps-from-caching/
This article covers the most popular caching plugins and methods, but if you use a different one, you can contact your plugin or hosting provider and ask them to exclude Rank Math from caching.
I hope this helps you resolve the issue permanently. Please let me know if you have any questions or need further assistance.
Thank you for using 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.