Hello,
Thank you for reaching out about excluding URLs in the LiteSpeed Cache plugin to improve your website’s speed. To ensure that your Rank Math sitemap is not cached by the LiteSpeed Cache plugin, you can exclude the following URLs:
/(.*)sitemap(.*).xml
/(.*)sitemap.xsl
/sitemap_index.xsl
/sitemap_index.xml
By adding these URLs to the “Do Not Cache URIs” field in the LiteSpeed Cache settings, you can prevent your sitemap from being cached, ensuring it remains up to date and accessible to search engines.
If you have any further questions or need assistance with this process, please feel free to ask.
Thank you for your attention to optimizing your website’s performance.
Best regards.
Sources:
How To Exclude Rank Math Sitemaps from Caching » Rank Math
How To Exclude Rank Math Sitemaps from Caching » Rank Math
How To Exclude Rank Math Sitemaps from Caching » Rank Math
How To Exclude Rank Math Sitemaps from Caching » Rank Math
How To Exclude Rank Math Sitemaps from Caching » Rank Math
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Just as Rankbot stated, you should exclude the sitemaps from caching to ensure it is generating updated URLs every time it is loaded.
To exclude your sitemap from being cached by LiteSpeed Cache, head over to LiteSpeed Cache → Cache → Excludes from your WordPress dashboard. Once done, paste the below code snippet into the Do Not Cache URIs field and click Save Changes.
/(.*)sitemap(.*).xml
/(.*)sitemap.xsl
/sitemap_index.xsl
/sitemap_index.xml
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Hello,
We are glad to know that this issue has been resolved. Thank you for letting us know.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.