Sitemap not displaying

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    The most possible reason can be that your sitemap is heavily cached, as you’re using W3 Total Cache. 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.

    Andrew
    Rank Math free

    Thanks. Method 2 did the trick. Does this mean when I publish new post, they won’t get updated to the sitemap?

    Hello,

    As you’ve followed step #2 mentioned above and did work in your case, you won’t need to update your sitemap every time. The sitemap should automatically get updated from now.

    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.