Commit dc127477 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Add cronjobs by install land

parent 9ae17d19
......@@ -814,9 +814,13 @@
<STATEMENT NAME="insert core cron jobs" TYPE="insert" TABLE="cron">
<SENTENCES>
<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)
VALUES (rebuild_artefact_parent_cache_complete, '*', '4', '*', '*', '*')" />
VALUES ('rebuild_artefact_parent_cache_complete', '*', '4', '*', '*', '*')" />
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('auth_clean_partial_registrations', '5', '0', '*', '*', '*')"/>
<SENTENCE TEXT="(callfunction, minute, hour, day, month, dayofweek)
VALUES ('auth_handle_account_expiries', '5', '10', '*', '*', '*')"/>
</SENTENCES>
</STATEMENT>
<STATEMENT NAME="insert template categories" TYPE="insert" TABLE="template_category">
......
......@@ -51,6 +51,21 @@ function xmldb_core_upgrade($oldversion=0) {
add_field($table, $field);
}
// Add cron jobs for authentication cleanup: partial registrations and account expiries
if ($oldversion < 2006121500) {
$registrations = new StdClass;
$registrations->callfunction = 'auth_clean_partial_registrations';
$registrations->minute = '0';
$registrations->hour = '5';
insert_record('cron', $registrations);
$expiries = new StdClass;
$registrations->callfunction = 'auth_handle_account_expiries';
$registrations->minute = '10';
$registrations->hour = '5';
insert_record('cron', $expiries);
}
return $status;
}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2006121401;
$config->version = 2006121500;
$config->release = '0.1';
?>
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