2 // $Id: cron.php 144 2007-03-28 07:52:20Z thierry $
6 * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
9 include_once './includes/bootstrap.inc';
10 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
12 // If not in 'safe mode', increase the maximum execution time:
13 if (!ini_get('safe_mode')) {
17 // Check if the last cron run completed
18 if (variable_get('cron_busy', false)) {
19 watchdog('cron', t('Last cron run did not complete.'), WATCHDOG_WARNING);
22 variable_set('cron_busy', true);
25 // Iterate through the modules calling their cron handlers (if any):
26 module_invoke_all('cron');
29 variable_set('cron_busy', false);
30 variable_set('cron_last', time());
31 watchdog('cron', t('Cron run completed'));