[freeside-commits] freeside/FS/bin freeside-selfservice-server, 1.20, 1.20.2.1
Ivan,,,
ivan at wavetail.420.am
Tue May 1 12:57:44 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail:/tmp/cvs-serv13103/FS/bin
Modified Files:
Tag: FREESIDE_1_7_BRANCH
freeside-selfservice-server
Log Message:
use FS::ClientAPI_SessionCache for signup info so it actually works - speed up signups
Index: freeside-selfservice-server
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-selfservice-server,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -u -d -r1.20 -r1.20.2.1
--- freeside-selfservice-server 15 Dec 2006 00:28:46 -0000 1.20
+++ freeside-selfservice-server 1 May 2007 19:57:40 -0000 1.20.2.1
@@ -14,6 +14,7 @@
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_bill;
@@ -59,6 +60,13 @@
my $conf = new FS::Conf;
+#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;
More information about the freeside-commits
mailing list