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:
Ralf Becker 2005-07-22 09:20:31 +00:00
parent b82ac2c4d6
commit c395f26dc6

View File

@ -167,6 +167,7 @@
{ {
$this->cache = &$GLOBALS['egw_info']['accounts']['cache']; $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"; //echo "<p>accounts::cache_invalidate($account_id)</p>\n";
$GLOBALS['egw_info']['accounts']['cache'] = array(); $GLOBALS['egw_info']['accounts']['cache'] = array();
$GLOBALS['egw']->invalidate_session_cache(); // invalidates whole egw-enviroment if stored in the session
} }
/** /**