Automatic sitemap actualization

#347929
  • Resolved Seo Elche
    Rank Math free

    Hi!

    Im using Rank Math in my site, but a need to know if i can use a server cron job to generate an automatic sitemap actualization…its possible? and how?

    Thanks!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Rank Math automatically generates a sitemap for your site, if you have the sitemap module enabled in Rank Math > Dashboard > Modules.

    You can further checkout this knowledge base article to understand how to configure your sitemaps with Rank Math – https://rankmath.com/kb/configure-sitemaps

    Hope this helps.

    Looking forward to helping you. Thank you.

    Hello!

    I know that Rank Math creates sitemaps automatically.
    I already have that configured.

    What I want is to update the sitemaps automatically, because I have products that I unsubscribe and pages that I create …and I don’t want to have to update the sitemap every time I make a change on the web. I prefer to create a cron job on the server and update the sitemap in the hours of lower load on the server and always be updated.

    In PrestaShop it is possible because the addons tell you which url to place in the cron task…but in wordpress with Rank Math I don’t see that option. Do you have it?

    Thanks

    Hello,

    Rank Math also should automatically update the sitemap contents upon changing the status of your pages so this doesn’t need the help of a CRON job.

    Unless your sitemap page is heavily cached? Could you please confirm if that’s the case? You may follow the steps below to completely remove your sitemap from being cached and its content should automatically be updated once there’s a change in your posts/pages:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/xXXhDt

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. If the issue still persists, please add this filter in your active theme’s functions.php file:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If this doesn’t help you, could you please further explain what you meant by “unsubscribing” your product page? Is this the same as setting it to “draft” status?

    Please note that when you set a product to “noindex” in the robots meta, it should automatically be removed from the sitemap.

    Looking forward to helping you on this one.

    Ok! Perfect, thanks!

    Prabhat
    Rank Math agency

    Hello,

    Glad that helped.

    Please feel free to get in touch if you require any further assistance.

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

The ticket ‘Automatic sitemap actualization’ is closed to new replies.