I had some similar experience sometimes. Switching to PHP FastCGI (php-fpm) solved it.
I used php5-fpm on the nginx setup, didn't notice a difference, could be a php config issue tho
Is the mysql (I'm assuming that's the database in use) running on socket or tcp?
EDIT: Also, if all else fails, maybe try something like https://blackfire.io/ to see what method is taking too long or if it's a general php slowness.
If you have PHP slowness turning on Zend Opcache might help, I doubt this will fix the "real" problem but it's worth trying. You must be on PHP 5.5 or newer tho.
thanks guys, found the offending code, it was an inefficient nested eloquent query.
I think in dev there was less data so I got away with it - in production there was more data so it became much slower
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community