The scheduler module comes with a URL you can call to execute just the cron hook for that one module. That way, cron for the whole site can be set to, say, hourly - with a 5 or 15 minute frequency for calls to its cron task.
Is there any way something similar could be done for the Twitter module. So, calling http://www.example.com/cron.php?unique-key still checks for fresh tweets to import. But, in addition, this module enables another URL: http://www.example.com/twitter/cron.php - and calling that URL only runs twitter_cron(), and no other cron functions.
I find that, on some sites, the frequency I set cron to run at is governed by how much lag I'm willing to have on my latest tweets, rather than by any other factors. This would separate out Twitter's cron needs from those of other modules.
Comments
Comment #1
damienmckennaYou're better off using e.g. Ultimate Cron for this, or writing your own script, or using Drush to trigger twitter_cron(). Either which way, there are several options open to you to do this right now and we won't be adding a custom menu handler that duplicates the cron.php script bundled with Drupal.