Sitemap is not refreshing

#72362
  • Resolved Topfgartenwelt
    Rank Math free

    Dear support-team,

    I have a problem with my Rankmath-Installation in WordPress. The sitemap is not refreshing even when a new post goes online. The last refresh was on 12.07.2020 although there were published two posts after that date. I have tried to refresh the sitemap by clicking save the permalink structure in the wordpress settings and by saving the sitemap in Rankmath, but there is no change. I have added the following code to the functions.php:

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

    But there is also no effect. What else I can do?

    Greetings Kathrin

Viewing 15 replies - 1 through 15 (of 18 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Are you also using a caching plugin? Or Cloudflare? If yes, could you add the following exceptions?

    /(.*)sitemap(.*).xml
    /(.*)sitemap.xsl

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Yes, I have a serverside-caching enabled. Where I have to put that code?

    Greetings Kathrin

    Alberto
    Rank Math business

    Hello,

    It depends on the serverside-caching system you are using. If you are not sure, I would recommend asking the hosting support since they will know how and where to enter those exceptions.

    Looking forward to help you.

    I will ask my hoster and will inform you about the answer. But I don’t understand why it worked until 12.07.2020 and then stopped…

    Greetings Kathrin

    After deaktivating the plugin and refreshing the cache the sitemap was refreshed. But why that doesn’t happen automatically? My hoster told me that this is no problem caused by the serverside cache…

    Greetings Kathrin

    So, the sitemap has refreshed but doesn’t contain any new article – they are all missing. What should I do???

    Hello,

    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.

    I will provide you an access by giving you a temporary login. But therefore I need an E-Mail-Adress.

    I have published a new post today, but there was the same problem again. The sitemap didn’t refresh. So I have to deactive the plugin again, clear the cache and activate it again. That’s a bad solution. 🙁

    Greetings Kathrin

    Hello Kathrin,

    You can use the username Rank math and the email s******@r***********.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

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

    Thank you.

    I have provided you the login details in the sensitive data box. This time it didn’t help to clear the cache to get a refresh in the sitemap… My new article doesn’t appear…

    Greetings Kathrin

    With a delay about 30 minutes the sitemap was refreshed after deactivating the plugin, clear the cache and activate the plugin again. But way the refreshing doesn’t happen automatically?

    Greetings Kathrin

    Did you already find the problem?

    Greetings Kathrin

    Hello,

    I added the following code to your theme’s functions.php to disable the default sitemap caching by the plugin:

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

    I created a test post and it seems to update just fine now.

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Thank you very much! Tommorrow a new post will go online and I hope it works now!

    Greetings Kathrin

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

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