Sitemap not updating

#462266
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

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

    Please 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/

    Then, apply this filter code to your theme’s functions.php file.

    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’); 
    

    Let us know how that goes. Looking forward to helping you.

    Thank you.

    Thanks, I’ve done those steps now (excluding from my caching plugin and updating functions.php file). I made a few minor changes to a blog post and updated it to see if I could force the sitemap to update. It still hasn’t updated — is it instantaneous or how long should it take to update?

    Anas
    Rank Math business

    Hello,

    The sitemaps are updated instantly.

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

    Please do take a complete backup of your website before sharing the information with us.
    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,

    We have followed the steps here to regenerate the sitemap and it’s now working so it seems like a caching issue: https://i.rankmath.com/pipRDp

    We recommend following the steps mentioned before to prevent it from being cached in the future.

    Don’t hesitate to get in touch if you have any other questions.

    Hi Miguel,
    great, thank you! Which steps do you recommend doing ongoing to prevent a future caching issue? Thanks!

    Hello,

    Your sitemap shouldn’t get cached anymore if you’ve done everything to exclude your sitemap from caching just as I mentioned above.

    Besides, I would like to suggest you to add the filter mentioned above either to your child theme’s funcitons.php, or in rank-math.php. As, it is not recommended to add filters/hooks in your active theme’s funcitons.php file. Because, whenever you update your theme, you will lose every changes or modification that you’ve made on your active theme’s functions.php file.

    Please follow the URL below to learn how you can add filters/hooks to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    In case, if your sitemap gets cached or you see not updated somehow, you may try updating links per sitemap and saving permalink structure as my colleague mentioned above.

    If you ever encounter any kind of issue regarding sitemap even after following the above steps, feel free to reach out us to again.

    We are here to help and would love to assist you with anything else you need.

    Thank you.

    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 7 replies - 1 through 7 (of 7 total)

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