mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
added function to invalidate the session-cache if:
- global config (egw_info[server]) changes - user prefs change - acl of the current user changes
This commit is contained in:
parent
b82ac2c4d6
commit
c395f26dc6
@ -167,6 +167,7 @@
|
||||
{
|
||||
$this->cache = &$GLOBALS['egw_info']['accounts']['cache'];
|
||||
}
|
||||
if (!is_array($this->cache)) $this->cache = array();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -372,6 +373,8 @@
|
||||
{
|
||||
//echo "<p>accounts::cache_invalidate($account_id)</p>\n";
|
||||
$GLOBALS['egw_info']['accounts']['cache'] = array();
|
||||
|
||||
$GLOBALS['egw']->invalidate_session_cache(); // invalidates whole egw-enviroment if stored in the session
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user