Have you seen this plugin?
http://www.boltwire.com/index.php?p=solutions.system.cron
It's quite old, but it used to work fine. In fact it was in the core
for awhile. May need some debugging to revive it again. Sounds exactly
like what you want.
I should also note you could probably just as easily tap into the
process engine. Which is why this got moved out of the core. Simply
create a config page for your specified "cron" jobs pages with lines
like the following:
$BOLTprocess['background'][] = 'BOLTsomefunction';
function BOLTsomefunction() {
// your code here...
}
Then call some page with this config setting. Can even have blank
content. Will run your functions after the page has been returned with
no change to performance from the viewers perspective. This is how
indexing is done in BoltWire. Just make sure $errorReporting is not
turned on, as that disables this.
I suppose to make it a function you could have one function define the
background function. Then you could put it anywhere on any page. Kind
of cool possibilities. You can also tap into the process engine at
other times beside background: startup, pre, post. Quite useful for
just a couple lines of code.
Cheers,
Dan
--
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en.