Skip to content

[Performance] Wrong file name for opcache preload #13330

@florentdestremau

Description

@florentdestremau

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions