mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
Fix for custom icons going missing by only caching for the session if no access to VFS
This commit is contained in:
parent
b0f4383a4f
commit
131b19fc32
@ -925,8 +925,14 @@ 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');
|
//error_log(__METHOD__."('$template_set') took ".(microtime(true)-$starttime).' secs');
|
||||||
egw_cache::setInstance(__CLASS__, $cache_name, $map, 86400); // cache for one day
|
egw_cache::setCache($cache_level,__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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user