Sitemap Errors – Flushing Sitemap Cache

#757220
  • Resolved Mariela Corella
    Rank Math free

    Hi there,

    I’m having an issue with the sitemap generated by RankMath’s plugin.
    The sitemap will sometimes show a 404 status code and an error on Google Search Console that it couldn’t be fetched.
    To fix it I do the “Flush the Sitemap Cache” option from this article: https://rankmath.com/kb/sitemap-404-error/
    But it’s not convenient to constantly be flushing the cache for the sitemap to work.
    And there are times where we won’t notice that it’s not working and it may have been down for days or longer.

    Is there a way to permanently fix this and not have to constantly flush the cache?

    Please advise,
    Thank you!

Viewing 1 replies (of 1 total)
  • Hello,

    I apologize for the inconvenience you are facing with the sitemap generated by Rank Math’s plugin, resulting in a 404 status code and an error on Google Search Console that it couldn’t be fetched. Thank you for bringing this to our attention.

    To address the issue of having to constantly flush the sitemap cache, you can follow these steps to potentially resolve the problem permanently:

    1. Exclude the Sitemap Files in the Caching Plugin: Ensure that you have excluded the sitemap_index.xml file from caching in your caching plugin settings. This will prevent the sitemap from being cached and potentially causing the 404 error.

    2. Add Filter to Enable/Disable Sitemap Caching: You can also add a filter to enable or disable sitemap caching. This can help in controlling how the sitemap is cached and prevent it from being outdated.

    If after following these steps the issue persists, please let us know, and we will further assist you in resolving the problem.

    Thank you for your understanding and cooperation.

    Sources:
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

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

The ticket ‘Sitemap Errors – Flushing Sitemap Cache’ is closed to new replies.