diff --git a/docroot/sites/all/modules/xmlsitemap/xmlsitemap.module b/docroot/sites/all/modules/xmlsitemap/xmlsitemap.module index c43ed61..c831660 100644 --- a/docroot/sites/all/modules/xmlsitemap/xmlsitemap.module +++ b/docroot/sites/all/modules/xmlsitemap/xmlsitemap.module @@ -231,9 +231,9 @@ function _xmlsitemap_rebuild_form_access() { */ function xmlsitemap_cron() { // If there were no new or changed links, skip. - if (!variable_get('xmlsitemap_regenerate_needed', FALSE)) { + /*if (!variable_get('xmlsitemap_regenerate_needed', FALSE)) { return; - } + }*/ // If the minimum sitemap lifetime hasn't been passed, skip. $lifetime = REQUEST_TIME - variable_get('xmlsitemap_generated_last', 0); @@ -243,7 +243,7 @@ function xmlsitemap_cron() { // Regenerate the sitemap XML files. module_load_include('generate.inc', 'xmlsitemap'); - xmlsitemap_run_unprogressive_batch('xmlsitemap_regenerate_batch'); + xmlsitemap_run_unprogressive_batch('xmlsitemap_rebuild_batch', xmlsitemap_get_rebuildable_link_types(), TRUE); } /**