I have set up Symfony but every page load requires 40 seconds.
If I have an empty controller it takes 8 seconds to load. If I start to make some complex queries on the database, it's worse. What can I do?
- deactivate the profiler? (will this change a lot?)
- activate APC on dev mode? (but will this not be a problem for changing the code)
- put the session inside APC?
- put Doctrine in the garbage?
- .... ?
I don't really know where to start.
(I am using Windows 7 with Xampp server and 8gb of ram)
A few quick suggestions:
mod_fcgid
instead ofmod_php
with Apacherealpath_cache_size
andrealpath_cache_ttl
in your php.iniSee this question, this question and this question.
Something is not right on your system. 40 seconds is way too long. Even in dev mode, your pages should be showing within a second or two.
Someone else has had similar problems here: Windows 7 php + Symfony2 terribly slow