Sitemap not updated!

#628083
  • Resolved Anonymous
    Rank Math free

    Hi team!

    Sitemap shows only 23 URLs for posts but we have around 35-36 posts published.

    How to fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please share the affected URL with us so we can further check it on our end?

    The most possible reason can be that your sitemap is heavily cached. Can you please try following the steps below to see if that works for you?

    #1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    #2. 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/

    #3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.

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

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Step 1 worked!

    but what is “sitemap is heavily cached”?

    Thank you for your help!

    Hello again,

    Am glad to know that the first step worked.

    Caching is the process of storing copies of website files in a temporary storage location so that they can be accessed more quickly. With caching, web browsers can display websites without fetching resources directly from the web server. Caching helps a website to load faster when it is being accessed.

    In this case, it means your sitemap files have been stored in a temporary storage and that is what is being shown instead of the updated sitemap. So to show the updated version of a webpage, deleting the cache is necessary.

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

    Thank You.

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

You must be logged in to reply to this ticket.