summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2007-05-01 19:57:40 +0000
committerivan <ivan>2007-05-01 19:57:40 +0000
commit86330b16240feb45baeaa5aa466b2b42c8a3e7fe (patch)
tree605d0f4345f725d0a5455a7964320a5d813d13c0 /FS/bin
parent7cdcb8d249f66efdbd5eb4efdd6e07f0f7948b49 (diff)
use FS::ClientAPI_SessionCache for signup info so it actually works - speed up signups
Diffstat (limited to 'FS/bin')
-rw-r--r--FS/bin/freeside-selfservice-server8
1 files changed, 8 insertions, 0 deletions
diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server
index 205f1c3..2087e71 100644
--- a/FS/bin/freeside-selfservice-server
+++ b/FS/bin/freeside-selfservice-server
@@ -14,6 +14,7 @@ use Net::SSH qw(sshopen2);
use FS::Daemon qw(daemonize1 drop_root logfile daemonize2 sigint sigterm);
use FS::UID qw(adminsuidsetup forksuidsetup);
use FS::ClientAPI;
+use FS::ClientAPI_SessionCache;
use FS::Conf;
use FS::cust_svc;
@@ -62,6 +63,13 @@ if ( $conf->exists('selfservice-ignore_quantity') ) {
$FS::cust_svc::ignore_quantity = 1; #now it is used twice.
}
+#clear the signup info cache so an "/etc/init.d/freeside restart" will pick
+#up new info... (better as a callback in Signup.pm?)
+my $cache = new FS::ClientAPI_SessionCache( {
+ 'namespace' => 'FS::ClientAPI::Signup',
+} );
+$cache->remove('signup_info_cache');
+
my $clientd = "/usr/local/sbin/freeside-selfservice-clientd"; #better name?
my $warnkids=0;