How often does a custom sitemap get updated?

#282273
  • Resolved Chad Reitsma
    Rank Math free

    Hey guys,
    I have added a custom sitemap for our users by following this guide: https://rankmath.com/kb/custom-sitemaps/

    My question is: How often will this sitemap get updated if/when we add new users?

    Note: We are not using the authors sitemap because the users do not have posts, so they were not showing up there.

    Cheers,
    C.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math.

    The sitemaps should be automatically updated whenever a new user will be added to the custom sitemap.

    If the sitemap is not updating, exclude the sitemaps from caching.

    You can add this filter in the theme’s functions.php file:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Please clear the cache after adding the filter and check the sitemap.

    Let us know how it goes.

    We are here to assist you.

    OK, I’ll keep an eye on it.

    If I have to disable caching, what kind of performance hit is that going to cause (if any?) If we have 10,000+ links in the sitemap

    Hello,

    It wouldn’t affect the performance as long as your server can handle loading those 10,000 links. You can decrease those link count as Rank Math will just divide those URLs into separate sitemap pages. Google prefers fast-loading sitemaps.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks Jeremy, appreciate the quick reply.

    I’ll leave caching enabled, and keep an eye on things!

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.