You are here

function _xmlsitemap_regenerate_before in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \_xmlsitemap_regenerate_before()
  2. 7.2 xmlsitemap.generate.inc \_xmlsitemap_regenerate_before()
  3. 2.x xmlsitemap.module \_xmlsitemap_regenerate_before()

Perform operations before rebuilding the sitemap.

1 string reference to '_xmlsitemap_regenerate_before'
xmlsitemap_regenerate_batch in ./xmlsitemap.generate.inc
Batch information callback for regenerating the sitemap files.

File

./xmlsitemap.generate.inc, line 57
Sitemap generation and rebuilding functions for the xmlsitemap module.

Code

function _xmlsitemap_regenerate_before() {

  // Attempt to increase the memory limit.
  _xmlsitemap_set_memory_limit();
  if (variable_get('xmlsitemap_developer_mode', 0)) {
    watchdog('xmlsitemap', 'Starting XML sitemap generation. Memory usage: @memory-peak.', array(
      '@memory-peak' => format_size(_xmlsitemap_memory_get_peak_usage()),
    ), WATCHDOG_DEBUG);
  }
}