Same filename and directory in other branches
- 4.6.x cron.php
- 5.x cron.php
- 6.x cron.php
- 7.x cron.php
File
cron.php
View source
<?php
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if (!ini_get('safe_mode')) {
set_time_limit(240);
}
if (variable_get('cron_busy', false)) {
watchdog('cron', t('Last cron run did not complete.'), WATCHDOG_WARNING);
}
else {
variable_set('cron_busy', true);
}
module_invoke_all('cron');
variable_set('cron_busy', false);
variable_set('cron_last', time());
watchdog('cron', t('Cron run completed'));