Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
Can you please flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
If that doesn’t help, add this filter in your active theme’s functions.php file:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If the issue persists, please let us know and we will further help you resolve it.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Sure, let us know how this goes.
Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further.
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I would like to apply the filter code to completely remove the sitemap from being cached but it seems that your theme file is not writable. Can you please contact your host and change the permission so we can insert the code as mentioned here?
Looking forward to helping you on this one.
I have already tried to add your filter using your guide
as you can see on the cPanel: https://ibb.co/HqmRW4S
and the next one on theme: https://ibb.co/dKvjSLG
but there is something which I have done wrong
See: https://ibb.co/SXPFVd2
So, I removed all the things and sent you the data
Will you plz help me, where I have done a mistake in adding the filter
Thanks
Hello,
When adding the filter in a separate PHP file, please ensure that you have enclosed the code using this tag: <?php ... ?> and the code should look like this:
<?php add_filter( 'rank_math/sitemap/enable_caching', '__return_false'); ?>
Let us know how that goes. Looking forward to helping you on this one.
Thanks, it seems that the issue of my sitemap of the site (https://trickyfreaky.com/) has been fixed now after adding the filter. At beginning I forgot to add <?php … ?> code, after adding this sitemap get updated.
If I again found any issues, I will contact you again.
Thanks to team
Hello,
Sure, do let us know if you have further issues with regard to the sitemap.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.