Sitemap

#30063
  • Resolved Darryl
    Rank Math free

    Hi,

    we are having an issue with the sitemap not updating.

    We have tried the following.

    Switching the sitemap off and on from the RankMath Dashboard.
    Saving permalinks unchanged from settings page in WordPress.
    Disable and re enable RankMath plugin.

    The only thing that makes the sitemap update when something new is added is deleting the RankMath plugin and reinstalling it.

    Our sitemap is not cached and bypasses the caching plugin we use.

    Used to work fine until about a month ago and we are using the same plugins that we have always had, nothing new so not sure what else we can do here.

Viewing 1 replies (of 1 total)
  • Hello,

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

    Could you please disable caching on the sitemap file by adding the following code snippet on your theme’s functions.php file:

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

    Looking forward to helping you. 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 1 replies (of 1 total)

The ticket ‘Sitemap’ is closed to new replies.