[freeside-commits] branch master updated. 643d1b29847685065eb9b0d46a1129a885147ec0

Christopher Burger burgerc at freeside.biz
Mon Sep 17 11:33:01 PDT 2018


The branch, master has been updated
       via  643d1b29847685065eb9b0d46a1129a885147ec0 (commit)
      from  77baa7974ade41e55d85de22e7d7a54273dd442f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 643d1b29847685065eb9b0d46a1129a885147ec0
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Mon Sep 17 14:32:33 2018 -0400

    RT# 39340 - fixed skin_info caching issue

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index ab11415b3..6cb0a7cc4 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);
 
   }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list