Hello,
We apologize for the issue you are facing with your sitemap not refreshing after changing your post titles. Since you’ve already cleared your cache and resaved permalinks, here are a few additional steps you can try:
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to identify any conflicts.
-
Disable Transient Caching: If the above solutions don’t work, you can add the following filter to your theme’s rank-math.php
file to disable the transient caching of your sitemap:
/**
* 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');
-
Exclude Sitemap from Caching: Ensure that your sitemap is excluded from any caching mechanisms you may have in place. You can refer to this dedicated knowledgebase article for guidance.
If you continue to experience issues, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Rank Math XML Sitemaps on NGINX Servers » Rank Math
ok the plugin did not find anything, I added the do not follow in litespeed cache. I’m not sure where i add this to my rank-math.php file “/**
* 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’);”
I checked my theme editor and i don’t see the rank-math.php file there but i see it in my file manager on my hosting but im not sure where to put it.
I can’t really find anything else wrong.
Hello,
The rank-math.php file needs to be created in your theme folder.
Here’s a guide you can follow:
https://rankmath.com/kb/wordpress-hooks-actions-filters/#num-2-1-create-rank-math-php-file
Also, please note that some options are only available when you enable the Advanced Mode in Rank Math.
You can follow the steps in this link to switch to Advanced Mode to access the .htaccess editor:
https://rankmath.com/kb/advanced-mode/
If the issue persists, please share the affected URL so we can check further.
Looking forward to helping you.
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.