acl
acl copied to clipboard
Removing Users taking too long Cake Acl
I am removing records from users table, and it is taking too long aprox 1 min to delete a record from users and other table of ACL. How to speed this process up because i have more than 1 lakh entries in table to remove I am Using this code to remove users
$users = $this->Users->find()->where(['group_id' => 3]);
foreach($users as $key => $value){
$id = $value->id;
if($id){
$user = $this->Users->get($id);
$this->Users->delete($user);
}
}
Sounds like you might have a big ACL tree that just takes a long time to re-order.