Sitemap not updating

#49313
  • Resolved Chris
    Rank Math pro

    Hi,

    My sitemap seems to be showing a cached version, which coincides with when I installed rank math. If I open the sitemap page in incognito, first of all the old version of the sitemap shows. If I then do a hard refresh, the updated version shows. However it is the old version that is being picked up by crawlers.

    So far I have tried:

    – Resave permalinks
    – Resave sitemap settings
    – Clear WP Rocket cache
    – Clear Cloudflare cache
    – Clear plugin cache

    What is the next step?

    • This topic was modified 3 years, 12 months ago by Chris.
Viewing 10 replies - 16 through 25 (of 25 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,

    I have now updated the sensitive data with some screenshots.

    The first one shows the outdated version of the sitemap. I know this is outdated because the most recently updated post is from 2 months ago, which coincides with when I switched to rank math.

    The second one shows the updated version of the sitemap, which has recently published posts in it.

    If I open the sitemap in incognito, when I hit refresh it alternates between these two versions.

    However, I am using Content King to check for errors, and it shows pages are missing from the sitemap (third image link), so it seems the version being picked up by crawlers is outdated, and of course it’s not great to have two versions of the sitemap loading anyway.

    Since my last message I have:

    – Disabled rank math sitemap caching using functions.php
    – Manually deleted the rank math cache
    – Saved permalinks
    – Saved sitemap settings
    – Deleted and reinstalled rank math

    And the problem persists.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Could you please disable the Rank Math sitemap module and check if the issue will still be reproduced when you install the following plugin: https://wordpress.org/plugins/google-sitemap-generator/

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,

    I have now disabled the rank math module and tried Google XML sitemap generator. I have attached a screenshot to the sensitive data box.

    The google xml sitemap generator is in a slightly different format, but it shows the most recent posts in the sitemap. Furthermore, if I hit refresh, the sitemap does not change.

    I have now re-enabled the rank math module, saved permalinks, and the same thing is happening.

    Alberto
    Rank Math business

    Hello,

    I have been checking the website and it seems when the user is logged, the sitemap is always updated (I tried to create a new post and it was immediately added to the post sitemap) but when you are not logged (like in Incognito mode), it uses the cached sitemap.

    Since you set WP Rocket to don’t cache it, it seems it is Cloudflare caching it, so you should add some exception in Cloudflare to don’t cache your sitemaps. Here is a guide where you can learn how to add cache exceptions in Cloudflare: https://support.cloudflare.com/hc/en-us/articles/200172316-How-do-I-include-or-exclude-a-specific-URL-from-Cloudflare-s-page-rules-

    Looking forward to help you.

    Hi,

    I have now set this up in Cloudflare and the issue is still there. I have purged the entire cache in Cloudflare.

    If it is because of Cloudflare, I’m not sure Cloudflare would keep a copy in the cache that is over 2 months old? I could understand if it was a day or two and the cache hadn’t refreshed but it is a lot longer than that.

    Alberto
    Rank Math business

    Hello,

    Could you check to turn the Development mode On in Cloudflare and then check in an Incognito tab if the issue is fixed? https://support.cloudflare.com/hc/en-us/articles/200168246-Understanding-Cloudflare-Development-Mode

    If that is the case, it would mean the trouble is in Cloudflare and we should check on its settings.

    Looking forward to help you.

    After everything I realised it was the advertising network I am using, Ezoic. It has a cache setting but I didn’t know it was turned on.

    Thanks for your help guys, sorry it took so long to get to this point.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 10 replies - 16 through 25 (of 25 total)

The ticket ‘Sitemap not updating’ is closed to new replies.