tech + caffeine = blog

Debugging Drupal Cron

Recently, we had some issues with Drupal cron and indexing of Solr results, so I figured I’d share a couple of quick tips on debugging Drupal cron:

function search_cron() {
	// We register a shutdown function to ensure that search_total is always up
	// to date.
	// Update word index
	foreach (module_list() as $module) {
		watchdog('search_debug', 'update index for ' . $module);
		module_invoke($module, 'update_index');
Fork me on GitHub