Sitemap not updated

#930229
  • Hi Support, This issue comes again on the website. It is resolved before but again sitemap is not updating.

    I have total 62+ pages but it is still showing “This XML Sitemap contains 53 URLs.”

    These URLs are not added in the sitemap:
    https://chevalbuildersinc.com/tanglewood-houston-tx/
    https://chevalbuildersinc.com/sunnyside-houston-tx/
    …..
    and the list goes on.

    What i do before to fix this “The issue is from the self-referencing canonical in the sitemap. I have updated the canonical. Now it is showing in the sitemap.”

    But this time it is not working.

    I am using Litespeed cache, i added in the cache plugin.

    “/(.*)sitemap(.*).xml
    /(.*)sitemap.xsl
    /sitemap_index.xsl
    /sitemap_index.xml”

    but the issue is still there.

    How can i update the sitemap?

    Can you please check and let me know how to fix this asap. It effects the SEO Performance.

    Thanks

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, please follow these steps to flush your sitemap cache:

    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. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:

    /** 
     * 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');

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how this goes.

    Hi, I did not make any changes but it is fixed now.

    Why this issue comes up?

    Hello,

    This issue must be from your sitemap caching if it was fixed itself.

    We recommend following the steps we shared previously to avoid this issue in the future.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.