From c395f26dc636a34ed58bf288578a98afdacbe398 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 22 Jul 2005 09:20:31 +0000 Subject: [PATCH] added function to invalidate the session-cache if: - global config (egw_info[server]) changes - user prefs change - acl of the current user changes --- phpgwapi/inc/class.accounts.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 829eb332d4..3f606857a1 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -167,6 +167,7 @@ { $this->cache = &$GLOBALS['egw_info']['accounts']['cache']; } + if (!is_array($this->cache)) $this->cache = array(); } /** @@ -372,6 +373,8 @@ { //echo "

accounts::cache_invalidate($account_id)

\n"; $GLOBALS['egw_info']['accounts']['cache'] = array(); + + $GLOBALS['egw']->invalidate_session_cache(); // invalidates whole egw-enviroment if stored in the session } /**