Re: ACL very slow

2012-04-17 Thread Farah
ote: >> >> It's quite possible you're just missing indexes[1], which would be a huge >> performance problem. Also, make sure the engine is innodb. >> >> 1: >> http://blog.loadsys.com/2008/03/19/cakephp-12-tuning-the-acl-via-mysql/ >> >>

Re: ACL very slow

2012-04-17 Thread Farah
Thanks for the reply! On Tuesday, April 17, 2012 11:16:49 AM UTC-3, stork wrote: > > Also, check out these projects > http://plugins.cakephp.org/packages?query=acl > if you do not need wheel with some special shape. > On Tuesday, April 17, 2012 11:16:49 AM UTC-3, stork wrote: > > Also, check out

Re: ACL very slow

2012-04-17 Thread Farah
I'm not expert in CakePHP, but its very clear that the ACL is slow if my tables database acos, aros and aros_acos over thousand rows. Just a simple $this->Acl->check() runs over 500 queries and its clear that its not the acl generate that, it uses the Tree behavior to find the specific permissi

Re: ACL very slow

2012-04-17 Thread Farah
Ok, I'm sorry stork, but I if I just try put in the session all permissions of the controller: $acoes = $this->Acao->find("all", array("conditions" => array("Controller.alias" => $controller))); foreach ($acoes as $key => $acao) { if (!$this->Session->check("Auth.Perm

Re: Password Protecting a Directory

2010-09-08 Thread Farah
See this documentation http://httpd.apache.org/docs/2.0/howto/auth.html On 7 set, 23:38, "Arak Tai'Roth" wrote: > Can anyone help me with this problem please? > > On Sep 6, 11:37 pm, "Arak Tai'Roth" wrote:> So, I > am aware this question has been asked and answered in a variety > > of differ