I am currently working on a site where it makes sense to not run xmlsitemap_node_create_link() or xmlsitemap_link_save() every time a node is updated. We are saving a lot of nodes and would prefer these changes to be made on cron only for performance reasons (in particular the query in xmlsitemap_node_get_timestamps() is running slowly).

Attached is a simple patch which adds a variable to let the site-owner decide if they would like to update XMLsitemap info on node save.

Comments

andrewlevine’s picture

Also wanted to mention this patch should not change the default functionality of the module at all