By devbox on
Hi, in the 5.1 release I added this little code to run cron each hour because I cannot let the provider run the script as explained in some help page.
so I added this in index.php after drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
/* Fabio - Run Cron, copyed from cron.php */
$last_call = variable_get('cron_last', FALSE);
if ($last_call) {
if (time() - $last_call > 3600) {
Run cron dopo un'ora
drupal_cron_run();
}
}
/* Fabio End */
And all worked fine.
Now I see that in 5.2 I have only drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);
Is this a problem?
I can move my code in some other php file?
I can reset DRUPAL_BOOTSTRAP_FULL?
I see there is a poormancron.module, but it is better that my simple code?
Comments
I'm sorry... I looked to
I'm sorry... I looked to install.php and not to index.php :(
I'll leave my working code in index.php :)