mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
new param to not invalidate the session-cache
This commit is contained in:
parent
07df005b44
commit
0af8df4caa
@ -558,9 +558,10 @@
|
|||||||
*
|
*
|
||||||
* @param boolean $update_session_info=false old param, seems not to be used
|
* @param boolean $update_session_info=false old param, seems not to be used
|
||||||
* @param string $type='user' which prefs to update: user/default/forced
|
* @param string $type='user' which prefs to update: user/default/forced
|
||||||
|
* @param boolean $invalid_cache=true should we invalidate the cache, default true
|
||||||
* @return array with new effective prefs (even when forced or default prefs are deleted!)
|
* @return array with new effective prefs (even when forced or default prefs are deleted!)
|
||||||
*/
|
*/
|
||||||
function save_repository($update_session_info = False,$type='user')
|
function save_repository($update_session_info = False,$type='user',$invalid_cache=true)
|
||||||
{
|
{
|
||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
@ -606,7 +607,7 @@
|
|||||||
$GLOBALS['egw_info']['user']['preferences'] = $this->data;
|
$GLOBALS['egw_info']['user']['preferences'] = $this->data;
|
||||||
$GLOBALS['egw']->session->save_repositories();
|
$GLOBALS['egw']->session->save_repositories();
|
||||||
}
|
}
|
||||||
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
if ($invalid_cache && method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->invalidate_session_cache(); // in case with cache the egw_info array in the session
|
$GLOBALS['egw']->invalidate_session_cache(); // in case with cache the egw_info array in the session
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user