From 094d5f56920ef066ff10d856399e7baa28d0fa56 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 17 Sep 2018 14:32:33 -0400 Subject: [PATCH] RT# 39340 - fixed skin_info caching issue --- FS/FS/ClientAPI/MyAccount.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index a11a4245d..4179cdb29 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); } -- 2.11.0