From 426e10e235689211fc52ee0077dce32ea3124bd6 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 6 Jan 2016 14:30:05 +0100 Subject: feature #392, bug fixed on footer link Use auth_key in mail cache key to avoid using the auth key of the first user. --- include/functions_mail.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index cf982bcf3..67be16c15 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -718,6 +718,10 @@ function pwg_mail($to, $args=array(), $tpl=array()) { // key compose of indexes witch allow to cache mail data $cache_key = $content_type.'-'.$lang_info['code']; + if (!empty($args['auth_key'])) + { + $cache_key.= '-'.$args['auth_key']; + } if (!isset($conf_mail[$cache_key])) { -- cgit v1.2.3