From 428a3ab8fee056aed4729229159ab23c9e31145e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 9 Mar 2015 20:17:14 +0000 Subject: [PATCH] Revert r51964, it had cache problems --- phpgwapi/inc/class.common.inc.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 6e8232f5ad..b69e6a81bd 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -925,14 +925,8 @@ class common } } } - else if ($dir) - { - // No access to the VFS, don't cache for everyone or custom icons - // will be missing. Just cache for current session. - $cache_level = egw_cache::SESSION; - } //error_log(__METHOD__."('$template_set') took ".(microtime(true)-$starttime).' secs'); - egw_cache::setCache($cache_level,__CLASS__, $cache_name, $map, 86400); // cache for one day + egw_cache::setInstance(__CLASS__, $cache_name, $map, 86400); // cache for one day //echo "

template_set=".array2string($template_set)."

\n"; _debug_array($map); return $map; }