I am building a Drupal 6 module for a client and I want to execute some part of code every XYZ minutes. I know I can implement the cron_hook, but my module has no control over the client’s cron. I need to run my code irrespective of cron setting. Any ideas on how to approach this?
Share
Drupal doesnt really offer anything beyond the hook_cron functionality.
However, what you can do is define a normal menu callback that executes whatever aribitarary code you want to run. Just set up the job manually in your server’s cron-tab to fire it whenever you want
Once you have that, just set up a cron job to hit the url however often you want