Commit dfc8576e authored by Penny Leach's avatar Penny Leach
Browse files

adding missing cronjob entry for processing the activity queue, fixed

up the broken timing for the rebuild complete parent cache cron
parent 15179e07
...@@ -424,4 +424,12 @@ function activity_set_defaults($user_id) { ...@@ -424,4 +424,12 @@ function activity_set_defaults($user_id) {
} }
function activity_process_queue() {
// stub for cronjob.
}
?> ?>
...@@ -831,12 +831,14 @@ ...@@ -831,12 +831,14 @@
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek) <SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('rebuild_artefact_parent_cache_dirty', '*', '*', '*', '*', '*')" /> VALUES ('rebuild_artefact_parent_cache_dirty', '*', '*', '*', '*', '*')" />
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek) <SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('rebuild_artefact_parent_cache_complete', '*', '4', '*', '*', '*')" /> VALUES ('rebuild_artefact_parent_cache_complete', '0', '4', '*', '*', '*')" />
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek) <SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('auth_clean_partial_registrations', '5', '0', '*', '*', '*')"/> VALUES ('auth_clean_partial_registrations', '5', '0', '*', '*', '*')"/>
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek) <SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('auth_handle_account_expiries', '5', '10', '*', '*', '*')"/> VALUES ('auth_handle_account_expiries', '5', '10', '*', '*', '*')"/>
</SENTENCES> <SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('activity_process_queue', '*/5', '*', '*', '*', '*')"/>
</SENTENCES>
</STATEMENT> </STATEMENT>
<STATEMENT NAME="insert template categories" TYPE="insert" TABLE="template_category"> <STATEMENT NAME="insert template categories" TYPE="insert" TABLE="template_category">
<SENTENCES> <SENTENCES>
......
...@@ -172,6 +172,15 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -172,6 +172,15 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql('UPDATE ' . get_config('dbprefix') . 'usr SET quota=10485760'); execute_sql('UPDATE ' . get_config('dbprefix') . 'usr SET quota=10485760');
} }
if ($oldversion < 2007012300) {
// fix up a broken cron entry...
set_field('cron', 'minute', '0', 'callfunction', 'rebuild_artefact_parent_cache_complete');
$c = new StdClass;
$c->callfunction = 'activity_process_queue';
$c->minute = '*/5';
insert_record('cron', $c);
}
return $status; return $status;
} }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
defined('INTERNAL') || die(); defined('INTERNAL') || die();
$config = new StdClass; $config = new StdClass;
$config->version = 2007011600; $config->version = 2007012300;
$config->release = '0.4.0'; $config->release = '0.4.0';
$config->minupgradefrom = 2006121501; $config->minupgradefrom = 2006121501;
$config->minupgraderelease = '0.1 (build tag BUILD_20061215)'; $config->minupgraderelease = '0.1 (build tag BUILD_20061215)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment