I've used Symfony on Windows 10 for my projects for a few years (SF2, SF3), and I recently moved to Symfony 4 to build a new project but performances are catastrophic.
Symfony initialization time takes from 5 to 25s, as in this example
It is the same with console: for example a cache:clear
can last 1 minute.
I searched for similar problems and issues in Symfony doc and forums, and I've tested recommended optimizations (increase some values for opcache
, enable APCu
, disable xdebug
, add realpath_cache_size
in php.ini
, use Composer Class Map Functionality) but in my case it does not change anything.
Here are my phpinfo for APCu: and Opcache:
I'm using PHP 7.1.9, Apache 2.4.27, MariaDB 10.2.8.
Is there someone with same problems and/or ideas ?