By figaro on
I am currently using DB cron (http://drupal.org/node/42922) for some automated housekeeping. The machine that runs cron.php is frequently down for maintenance, so the question is whether DB Cron can be configured to do cron.php's job instead.
Thanks in advance
Comments
Hello figaro, Actually you
Hello figaro,
Actually you should use Poormanscron (http://drupal.org/project/poormanscron) to substitute the cron tab.
Cheers,
Emiliano.
http://www.novayork.com
I'm a cheater.
I cheated, and just set up a Windows task to open /cron.php every hour ;-)
It would be a nice feature though, maybe if there was a catch for something, like the first visitor every hour sets off the cron job. (It should definitely be optional, default disabled)
if (FirstVisitorOfTheHour) then echo "#include cron.php";
Edit: Emiliano resolved this for us as I was typing ;-) Thanks!
Thanks for the answers
Have installed poormanscron and it does seem to suit the purpose. I was however thinking more along the lines of reusing DB Crons code to achieve the same thing. In other words are there specific database tables one could run a query on to emulate cron.php's activity?
I don't think so
As far as I know, cron.php checks each module in order to execute the apropriate queries. The instructions are not in the DB, but in each module file.
Only DBCron module stores the instructions in the database. That's its purpose. It can't, however, replace the module's native cron queries.
Cheers,
Emiliano.
http://www.novayork.com