Imported posts don’t update sitemap

#180088
  • Resolved Max Beer
    Rank Math free

    Greetings,
    We are importing Custom Posts (job offers) into WordPress twice a day, but the corresponding sitemap does not update accordingly. We suspected caching as the culprit, but excluding the sitemap from caching did not solve the problem.
    What else should we check?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us and we regret the inconvenience caused.

    Please try flushing the Sitemap cache by following this video screencast and see if that fixes the issue: https://i.rankmath.com/pipRDp

    For more details, please refer to this tutorial guide:
    https://rankmath.com/kb/url-not-in-sitemap/

    Please let us know how that goes.

    Thanks.

    Max Beer
    Rank Math free

    Hello,

    thanks for the tips.
    Clearing the cache did update the sitemap, though I suspect that won’t be a permanent solution, as newly imported posts won’t clear the cache each time.

    I could also update the sitemap by saving one of the imported posts. Could you maybe tell me which event Rankmath is listening for when it comes to updating the sitemap? Potentially we could adjust our importer to trigger that event.

    Regards.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    You would not need to clear the sitemap cache each time. Please let us know if you come across the issue again so that we would further investigate the issue.

    Also, if you have another question in the future, please feel free reach out, and it will be our pleasure to assist you again.

    Thank you.

    Max Beer
    Rank Math free

    Hello,

    clearing the sitemap cache sadly didn’t solve the problem permanently, the sitemap is still in the state after the cache clear.

    Do you have any other suggestions?

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    I tested your sitemap with https://httpstatus.io/ and I found that your sitemaps are heavily cached:

    You mentioned in your 1st post on this ticket that you’ve excluded the sitemaps from caching, Could you please confirm whether the sitemaps are still excluded from caching or not?

    If not, then please follow this tutorial to exclude Rank Math sitemaps from getting cached and see if that fixes the issue: https://rankmath.com/kb/exclude-sitemaps-from-caching/

    You can also get in touch with your hosting provider to check if any caching is set from their end.

    Please let us know how that goes.

    Thanks.

    Max Beer
    Rank Math free

    Hello,
    I can confirm they are still excluded. What made you think it’s cached?
    If you add a parameter to the URL to avoid the potentially cached version, you will see the sitemap doesn’t change.

    Regards.

    Anas
    Rank Math business

    Hello,

    I have checked the source code of the sitemap page and it looks like it is still being cached.
    sitemap

    Please check if your caching plugin is still caching the sitemap or if there is any server-side caching.

    I hope this helps. Looking forward to helping you.

    Max Beer
    Rank Math free

    Hello,

    the sitemap was cached by the internal RankMath cache. We have disabled this cache now, and the sitemap is updating now.

    Prabhat
    Rank Math agency

    Hello,

    We’re glad that you got that sorted.

    Please let us know if you need any further assistance, it would be our pleasure to assist you.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘Imported posts don’t update sitemap’ is closed to new replies.