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 14:32:33 -0400
commit643d1b29847685065eb9b0d46a1129a885147ec0 (patch)
treec5edccde6a517c13cc8b17912188bc8ea7b14478 /FS/FS/ClientAPI
parent77baa7974ade41e55d85de22e7d7a54273dd442f (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 ab11415..6cb0a7c 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);
}