From 97cafbf920118fefa0b3816ae07fe84d494aa74a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 16 Mar 2015 20:22:32 +0000 Subject: [PATCH] Another attempt at properly caching image map without blowing up the cache. --- phpgwapi/inc/class.common.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index b69e6a81bd..6479d19103 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -925,6 +925,10 @@ class common } } } + else if ($dir) + { + return $map; + } //error_log(__METHOD__."('$template_set') took ".(microtime(true)-$starttime).' secs'); egw_cache::setInstance(__CLASS__, $cache_name, $map, 86400); // cache for one day //echo "

template_set=".array2string($template_set)."

\n"; _debug_array($map);