With Symfony 5.1 and PHP 7.4, I want to add preload.php
in opcache.
During container compilation (e.g. when running the cache:clear command), Symfony generates a file called preload.php in the config/ directory with the list of classes to preload.
opcache.preload=/path/to/project/config/preload.php
But when I execute cache:clear
, I don't have preload.php
file in /config/
directory.
After search on google, this site indicates :
Now, in PhpStorm, check out the var/cache/prod/ directory... here it is: App_KernelProdContainer.preload.php.
I have this file. Did I perform something wrong or is the documentation symfony not up to date ?