forked from extern/egroupware
Small enhancements to cache.
This commit is contained in:
parent
ae9b96d242
commit
c635b8226a
@ -297,6 +297,7 @@
|
||||
$acl->delete_repository('phpgw_group',$groupData['account_id'],$_userData['account_id']);
|
||||
}
|
||||
}
|
||||
$phpgw->session->delete_cache(intval($_userData['account_id']));
|
||||
}
|
||||
|
||||
// checks if the userdata are valid
|
||||
|
@ -377,6 +377,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
function delete_cache($accountid='')
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$account_id = get_account_id($accountid,$this->account_id);
|
||||
|
||||
$query = "DELETE FROM phpgw_app_sessions WHERE loginid = '".$account_id."'"
|
||||
." AND app = 'phpgwapi' and location = 'phpgw_info_cache'";
|
||||
|
||||
$phpgw->db->query($query);
|
||||
}
|
||||
|
||||
function save_repositories()
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
|
Loading…
Reference in New Issue
Block a user