[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm,1.58,1.59
Mark Wells
mark at wavetail.420.am
Wed Aug 25 02:42:06 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv10329/FS/FS/ClientAPI
Modified Files:
Signup.pm
Log Message:
clear signup_info cache when starting xmlrpcd, RT#9380
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -w -d -r1.58 -r1.59
--- Signup.pm 24 Aug 2010 23:41:42 -0000 1.58
+++ Signup.pm 25 Aug 2010 09:42:04 -0000 1.59
@@ -26,6 +26,15 @@
$DEBUG = 0;
$me = '[FS::ClientAPI::Signup]';
+sub clear_cache {
+ warn "$me clear_cache called\n" if $DEBUG;
+ my $cache = new FS::ClientAPI_SessionCache( {
+ 'namespace' => 'FS::ClientAPI::Signup',
+ } );
+ $cache->clear();
+ return {};
+}
+
sub signup_info {
my $packet = shift;
@@ -90,7 +99,7 @@
],
'agent' => [ map { my $agent = $_;
- { map { $_ => $agent->get($_) } @agent_fields }
+ +{ map { $_ => $agent->get($_) } @agent_fields }
}
qsearch('agent', { 'disabled' => '' } )
],
More information about the freeside-commits
mailing list