projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clear signup_info cache when starting xmlrpcd, RT#9380
[freeside.git]
/
FS
/
FS
/
ClientAPI
/
Signup.pm
diff --git
a/FS/FS/ClientAPI/Signup.pm
b/FS/FS/ClientAPI/Signup.pm
index
2aca88c
..
2eefcf8
100644
(file)
--- a/
FS/FS/ClientAPI/Signup.pm
+++ b/
FS/FS/ClientAPI/Signup.pm
@@
-26,6
+26,15
@@
use FS::payby;
$DEBUG = 0;
$me = '[FS::ClientAPI::Signup]';
$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;
sub signup_info {
my $packet = shift;
@@
-90,7
+99,7
@@
sub signup_info {
],
'agent' => [ map { my $agent = $_;
],
'agent' => [ map { my $agent = $_;
- +{ map { $_ => $agent->get($_) } @agent_fields }
+
+{ map { $_ => $agent->get($_) } @agent_fields }
}
qsearch('agent', { 'disabled' => '' } )
],
}
qsearch('agent', { 'disabled' => '' } )
],