diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-09-17 14:32:33 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-09-17 14:34:25 -0400 |
commit | 646a070648d2d05cac0a847e2505c45783390c6b (patch) | |
tree | d1ad3b23dd7d87f59220d06b8f2b34d04baffdb8 | |
parent | f4ad9107585d16317bb15bf3223fe8b8eeeeb82c (diff) |
RT# 39340 - fixed skin_info caching issue
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 5bccad1..c1b6ec2 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -106,7 +106,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"); @@ -149,7 +149,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); } |