Another attempt at properly caching image map without blowing up the cache.

This commit is contained in:
Nathan Gray 2015-03-11 22:19:43 +00:00
parent cabf2f2e75
commit 6e98e917b6

View File

@ -924,9 +924,13 @@ class common
$app_map[$name] = egw_vfs::download_url($img); $app_map[$name] = egw_vfs::download_url($img);
} }
} }
egw_cache::setInstance(__CLASS__, $cache_name, $map, 86400); // cache for one day }
else if ($dir)
{
return $map;
} }
//error_log(__METHOD__."('$template_set') took ".(microtime(true)-$starttime).' secs'); //error_log(__METHOD__."('$template_set') took ".(microtime(true)-$starttime).' secs');
egw_cache::setInstance(__CLASS__, $cache_name, $map, 86400); // cache for one day
//echo "<p>template_set=".array2string($template_set)."</p>\n"; _debug_array($map); //echo "<p>template_set=".array2string($template_set)."</p>\n"; _debug_array($map);
return $map; return $map;
} }