Symfony-docs: [Performance] Wrong file name for opcache preload

Created on 11 Mar 2020  路  5Comments  路  Source: symfony/symfony-docs

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 ?

All 5 comments

friendly ping @nicolas-grekas

that's correct

I'm sorry I really can't get a clear answer as to if I should:

  1. Create a PR into 4.4 with a corrected file name
  2. Create a PR into master with a "info" panel explaining that in SF < 5, the filename will be prefixed with the app name "src".

I would prefer 1.

PR ready :)

Was this page helpful?
0 / 5 - 0 ratings