Hello,
Thank you for contacting Rank Math support. I’m sorry to hear that you are having trouble with your sitemap.
The Rank Math sitemap should be updated almost immediately, if this is not the case, then the issue is most likely coming from your caching systems.
To troubleshoot this issue, please follow these steps:
- Reset your WordPress permalinks by going to WordPress Dashboard > Settings > Permalinks and clicking Save Changes without making any changes.
- Regenerate your sitemap by going to Rank Math > Sitemap Settings and changing the Link per Sitemap to 201 or anything else and then click Save Changes. You can change it later, this is just to regenerate your sitemap. You can follow this screencast: https://i.rankmath.com/pipRDp
- 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/
- To make sure your sitemap gets updated immediately, add the following code to 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');
You can learn how to add this code to your website here: https://rankmath.com/kb/wordpress-hooks-actions-filters/
If none of these steps resolve the issue, please let us know and provide us with your WordPress login details and FTP access in the Sensitive Data section so we can take a closer look.
We hope this helps. Please let us know if you have any questions or concerns.
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.