On page https://symfony.com/doc/master/performance.html
I noticed when trying to apply the opcache.preload setting that the file announced in the docs wasn't the actual name of the file in my project. (4.4.5)
; php.ini
opcache.preload=/path/to/project/var/cache/prod/App_KernelProdContainer.preload.php
Should actually be
; php.ini
opcache.preload=/path/to/project/var/cache/prod/srcApp_KernelProdContainer.preload.php
(notice the srcApp_KernelProdContainer).
As @Pierstoval pointed me, this is because in SF <5 the name of the app is included in the file (src). I can make a docs PR to point this out.
Should it be on master with a notice or on 4.4 docs ?
friendly ping @nicolas-grekas
that's correct
I'm sorry I really can't get a clear answer as to if I should:
I would prefer 1.
PR ready :)