summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-09-17 14:32:33 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-09-17 15:00:21 -0400
commit094d5f56920ef066ff10d856399e7baa28d0fa56 (patch)
tree0c0dd31f3cdf07e727006b0d94e5cfd19b695203 /FS/FS/ClientAPI
parent9c562fe3db3cc5fe4ea399427590da20b147c1de (diff)
RT# 39340 - fixed skin_info caching issue
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index a11a424..4179cdb 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -107,7 +107,7 @@ sub skin_info {
$p->{'agentnum'} = $agentnum;
my $conf = new FS::Conf;
-
+ my $timeout = $conf->config('selfservice-session_timeout') || '1 hour';
#false laziness w/Signup.pm
my $skin_info_cache_agent = _cache->get("skin_info_cache_agent$agentnum");
@@ -150,7 +150,7 @@ sub skin_info {
'menu' => _menu($domain,$menu),
};
- _cache->set("skin_info_cache_agent$agentnum", $skin_info_cache_agent);
+ _cache->set("skin_info_cache_agent$agentnum", $skin_info_cache_agent, $timeout);
}