events: MDL-17442 add support for local events and run event queue in cron

This commit is contained in:
Penny Leach
2010-03-04 17:06:19 +00:00
parent bf71c4c778
commit 774c13ca15
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -223,6 +223,9 @@
grade_cron();
mtrace('done.');
mtrace('Starting processing the event queue...');
events_cron();
mtrace('done.');
/// Run all core cron jobs, but not every time since they aren't too important.
/// These don't have a timer to reduce load, so we'll use a random number
+4
View File
@@ -184,6 +184,10 @@ function upgrade_local_db($continueto) {
error('Could not set up the capabilities for local!');
}
if (!events_update_definition('local')) {
error('Could not set up the events definitions for local!');
}
upgrade_log_finish();
}