diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 27c70270de..8390c5c7b2 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -832,10 +832,11 @@ class accounts { //echo "

accounts::cache_invalidate($account_id)

\n"; if (self::$cache) self::$cache = array(); + egw_cache::unsetSession('accounts_cache','phpgwapi'); if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited { - $GLOBALS['egw']->invalidate_session_cache(); // invalidates whole egw-enviroment if stored in the session + egw::invalidate_session_cache(); // invalidates whole egw-enviroment if stored in the session } }