projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
94be7e5
)
clean up old RT sessions
author
Ivan Kohler
<ivan@freeside.biz>
Sat, 16 Dec 2017 18:12:28 +0000
(10:12 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Sat, 16 Dec 2017 18:12:28 +0000
(10:12 -0800)
FS/FS/Cron/rt_tasks.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Cron/rt_tasks.pm
b/FS/FS/Cron/rt_tasks.pm
index
077f23c
..
2148876
100644
(file)
--- 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';
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
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