URLs not updating

#33014
  • Resolved Michael Martin
    Rank Math free

    Hi all,

    I have had to update the permalink structure on my site (dropping trailing slash). It appears that the RankMath sitemap index has not been updated to reflect this. The last modified date on that is 4 days ago. Please can you advise? I have cleared the WP cache. This is the index in question:

    https://reclaimdesign.org/page-sitemap.xml

Viewing 15 replies - 1 through 15 (of 22 total)
  • Todd
    Rank Math free

    Hi Michael,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    Please use this filter to disable sitemap cache:

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

    You can remove the code once you are done so the cache can start working again.

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

    I have disabled the snippet in the meantime, but to confirm – do I need to reverse the code (changing the boolean I mean, something along these lines – add_filter( 'rank_math/sitemap/enable_caching', '__return_true');), and activate that snippet in order to get it working again?

    Hi Michael,

    Thank you for the question.

    The boolean need to be set to false as my colleague suggested for this to work.

    Could you please delete the plugin and perform a fresh install to delete the local sitemap cache that is saved in the plugin?

    PS: This will not cause any data loss.

    I hope this info helps. Thank you.

    Hi Michael – do you mean I should delete RankMath?

    And I won’t have to redo all my settings?

    I spent a while getting instant indexing working, so not keen to lose that either. So if I can confirm that I can deactivate and delete RankMath without facing any issues before I go ahead and do that. I’ve spent too long on all this for it to go out the window!

    Hello,

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

    Thank you.

    Todd
    Rank Math free

    Hi Michael,

    You can simply delete the sitemap cache code you added. By default, cache is enabled.

    Also, you can first try deleting the sitemap-cache folder in the seo-by-rank-math folder via FTP.

    If that doesn’t work, you can perform a fresh install of Rank Math. Don’t worry, all your settings will remain intact. The Indexing API is separate so that won’t be affected if you reinstall Rank Math.

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

    Hi Todd, thank you for your suggestions. I deleted the sitemap code, but that didn’t work. I’ve opened up the sitemap-cache folder and it appears empty? I will delete it, but not sure that will do anything if no files?

    Hi Todd, deleting the empty cache folder didn’t work.

    I also deactivated then deleted RankMath, and reinstalled. This didn’t work either. WP cache is cleared. The sitemap is still showing last modified of 15th Feb:

    https://reclaimdesign.org/sitemap_index.xml

    I’ve checked the sitemap index in different browsers and also in private mode, and they all show the same result.

    Hello,

    Thank you for contacting Rank Math today.

    I have checked your sitemap and the settings seems to have taken effect as shown below:
    Screenshot

    Can you please check again?

    Looking forward to helping you. Thank you.

    ​​​​​​

    I have just checked on my mobile phone and I see the same sitemap as I added the link to above. So on all my devices the sitemap shows up with the old urls.

    Hi Michael,

    This is certainly very odd.

    I have also performed a CURL request on your sitemap and the returned links look okay. Please test this here https://onlinecurl.com/

    Let me know how this goes. Thank you.

    Hi Michael,

    I’ve tested in Edge, Chrome, Opera and Firefox (all latest version). All have had cache’s cleared. Here’s the results:

    Edge – incorrect sitemap, showing last modified 15th Feb.
    Edge Private – incorrect sitemap, showing last modified 15th Feb.

    Chrome – incorrect sitemap, showing last modified 15th Feb.
    Chrome Incognito – incorrect sitemap, showing last modified 15th Feb.

    Firefox – incorrect sitemap, showing last modified 15th Feb.
    Firefox Private – incorrect sitemap, showing last modified 15th Feb.

    Opera – correct sitemap, showing today’s date.

    This is beyond bizarre…..

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

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