Symfony on Xampp is very slow in development, what can I do?

前端 未结 2 853
忘掉有多难
忘掉有多难 2021-02-04 10:35

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

相关标签:
2条回答
  • 2021-02-04 11:04

    A few quick suggestions:

    • install PHP 5.5.x (faster)
    • Use mod_fcgid instead of mod_php with Apache
    • Raise realpath_cache_size and realpath_cache_ttl in your php.ini
    • disable XDebug
    • ...

    See this question, this question and this question.

    0 讨论(0)
  • 2021-02-04 11:18

    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

    0 讨论(0)
提交回复
热议问题