(Sharing this in case anyone wants it, not meant to be committed to core)
This patch modifies core to allow multiple crons. Primary cron remains hook_cron, and other crons get their own hooks at hook_cron_mycron. The changes leave the primary cron alone, not impacting existing cron functionality.
The invocation of the new crons is separate; I do this with a script run using drush php-eval that I can share separately or try to modify and integrate into this patch. cron.php remains only for the primary cron.
The purpose of multiple crons is to split up different types of cron processes that need to run at different intervals, or take too much time/resources to all run in the same primary cron.
| Comment | File | Size | Author |
|---|---|---|---|
| cron-mods.patch | 4.42 KB | thebuckst0p |
Comments
Comment #1
MaxWesten commentedYou could install the Elysia Cron module for that too....
This module allows fine-grained support for all cron hooks.
Comment #2
dddave commentedHi thebuckst0p,
feature request have pretty much no chance to be included into D6 at this stage. If you want such a feature in Drupal you might want to open a feature request against D8 which is the version where new features happen. I doubt that such a change has any chance to get into D7 either...
For D6 and D7 contrib provides working solutions.