From: Ivan Kohler Date: Sat, 16 Dec 2017 18:12:28 +0000 (-0800) Subject: clean up old RT sessions X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6fd87713f1aca3f7fd2acc9126ce4f65255859c9 clean up old RT sessions --- diff --git a/FS/FS/Cron/rt_tasks.pm b/FS/FS/Cron/rt_tasks.pm index 077f23cc6..21488762a 100644 --- a/FS/FS/Cron/rt_tasks.pm +++ b/FS/FS/Cron/rt_tasks.pm @@ -31,6 +31,8 @@ sub rt_daily { my $system = $FS::TicketSystem::system; return if !defined($system) || $system ne 'RT_Internal'; + system('/opt/rt3/sbin/rt-clean-sessions --older 1M --skip-user &'); + system('/opt/rt3/sbin/rt-fulltext-indexer --quiet --limit 5400 &'); # if -d or -y is in use, bail out. There's no reliable way to tell RT