summaryrefslogtreecommitdiff
path: root/lib/Multi/RG.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi/RG.pm')
-rw-r--r--lib/Multi/RG.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Multi/RG.pm b/lib/Multi/RG.pm
index 9133a7a6..bf0ad9f6 100644
--- a/lib/Multi/RG.pm
+++ b/lib/Multi/RG.pm
@@ -33,6 +33,9 @@ sub spawn {
sub _start {
$_[KERNEL]->alias_set('rg');
$_[KERNEL]->call(core => register => qr/^relgraph ((?:[0-9]+)(?:\s+[0-9]+)*|all)$/, 'cmd_relgraph');
+
+ # regenerate all relation graphs twice a month (every 1st and 15nd day at 03:00)
+ $_[KERNEL]->post(core => addcron => '0 3 1,15 * *', 'relgraph all');
}