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?
I don't really know where to start.
(I am using Windows 7 with Xampp server and 8gb of ram)
Symfony is not slow in the meaning of "not optimized" How do we know it? Because we measured. We do use profiling tools a lot, on our own applications as well as on symfony itself. In fact, if you look at the symfony code, you can see that there are numerous optimizations already in place.
A few quick suggestions:
mod_fcgid
instead of mod_php
with Apacherealpath_cache_size
and realpath_cache_ttl
in your php.ini
See this question, this question and this question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With