Small enhancements to cache.

This commit is contained in:
skeeter 2001-06-22 01:22:22 +00:00
parent ae9b96d242
commit c635b8226a
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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;