- fixed not working accounts::cache_invalidate(): cache is now in regular egw_cache on session level

- calling static methods static: accounts::cache_invalidate() or egw::invalidate_session_cache()
- fixed wrong number of deleted items in setup_cmd_ldap sub-comand=delete_ldap
- only use create, if we have an ldap_admin_pw set
- call an add_account hook for each created account, if specified (not by default)
This commit is contained in:
Ralf Becker 2010-08-29 08:56:59 +00:00
parent 992db760f9
commit 376208d6ab

View File

@ -832,10 +832,11 @@ class accounts
{
//echo "<p>accounts::cache_invalidate($account_id)</p>\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
}
}