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, 11 months ago by Chris.
Viewing 15 replies - 1 through 15 (of 25 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Could you please delete the plugin and perform a fresh install to clear the local sitemap file and let us know if the issue is still reported?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Does this mean I will need to reconfigure all settings and do the walk through again?

    Alberto
    Rank Math business

    Hello,

    No, the settings will be saved so once you install the plugin again, all your settings will be there.

    Looking forward to help you.

    Hi,

    I have now tried this and the problem persists.

    Hello,

    Thanks for the reply.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hello,

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

    Thank you.

    I have now updated the sensitive data box.

    Please note that when you are logged into the site, the latest version of the sitemap will show, but in incognito mode it does not.

    Todd
    Rank Math free

    Hi,

    The post-sitemap.xml is not creating because you are splitting them based on settings at WordPress Dashboard > Rank Math > Sitemap Settings > Global Settings.

    You instead have post-sitemap1.xml and post-sitemap2.xml

    If any posts are not in the sitemap, let us know the URLs so we can check.

    Hi,

    The initial error described above still stands as well – /post-sitemap1.xml has not updated since I switched to Rank Math.

    A tool that I use to check for errors is still picking up /post-sitemap.xml, which incidentally has not updated since I switched to Rank Math either.

    Hello,

    Thank you for contacting Rank Math today.

    I can see that your sitemap was modified two days ago. Here is a screenshot:
    Screenshot

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Yes as per the messages above, if I am logged in as an admin I see the updated version of the sitemap. But if I check in incognito mode, I see a version that has not been updated since I switched to rank math 2 months ago.

    One of the tools that I use to check for errors is also picking up the old version of the sitemap, which makes me think that Google will also be seeing the outdated version.

    Alberto
    Rank Math business

    Hello,

    I think I just fixed it since I am seeing the updated post sitemap in Incognito mode.

    WP Rocket was caching the sitemaps (that is why logged user were able to see the updated) so I just added the following rules to WP Rocket:

    null

    After that I cleaned the cache and saved again the permalinks and everything seems to be working fine.

    Could you check it?

    Looking forward to help you.

    • This reply was modified 3 years, 11 months ago by Alberto.

    Hello Alberto,

    Unfortunately the issue persists for me. When I first load it in incognito mode, I see the old version. If I do a hard refresh, I see the new version. If I do a normal refresh, I see the old version.

    The same is happening on the .com version of the site that I included, which does not have WP Rocket running.

    On the .com version of the site, there is no caching plugin installed at all.

    I have just tried clearing the Cloudflare cache again and still the problem persists.

    I have also completed a fresh install of the plugin on both sites, and the problem still persists.

    Todd
    Rank Math free

    Hi,

    Do you have a few URLs that you do not see in the sitemap? If not, how are you determining it is an old version?

    Also, have you tried disabling the Sitemap module and enabling it again?

    You could also try disabling Rank Math’s built in cache for sitemap by adding this code in the theme’s functions.php:
    https://rankmath.com/kb/filters-hooks-api-developer/#enable-disable-sitemap-cache

    Let us know.

    Thank you.

Viewing 15 replies - 1 through 15 (of 25 total)

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