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

前端 未结 2 856
忘掉有多难
忘掉有多难 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.

提交回复
热议问题