Monday, April 9, 2012

Re: $this->Auth->user VERY slow



On Thursday, 5 April 2012 17:00:49 UTC+2, Dan Moseley wrote:
Hi,
I have been experiencing extremely long run times for some calls to $this->Auth->user('id').

Most requests spend 0 time in this method, but seemingly random requests are taking upwards of 60 seconds..

Probably because one request is locking the session (if you start a session in php, any other request has to wait until the locking request finishes with it). Investigate along those lines - i.e. put

$this->log("in AppController:: beforeFilter" . $this->here, "debugging-sessions");
$this->log("in AppController:: afterFilter" . $this->here, "debugging-sessions");

in appropriate places.

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate