Skip to content

Commit 30a49fe

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Update performance.rst
2 parents d8df410 + 975137a commit 30a49fe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

performance.rst

+7-4
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,19 @@ make them available to all requests until the server is restarted, improving
106106
performance significantly.
107107

108108
During container compilation (e.g. when running the ``cache:clear`` command),
109-
Symfony generates a file called ``preload.php`` in the ``config/`` directory
110-
with the list of classes to preload.
111-
112-
You can configure PHP to use this preload file:
109+
Symfony generates a file with the list of classes to preload in the
110+
``var/cache/`` directory. Rather than use this file directly, use the
111+
``config/preload.php`` file that is created when
112+
:doc:`using Symfony Flex in your project </setup/flex>`:
113113

114114
.. code-block:: ini
115115
116116
; php.ini
117117
opcache.preload=/path/to/project/config/preload.php
118118
119+
If this file is missing, run this command to reinstall the Symfony Flex recipe:
120+
``composer recipes:install symfony/framework-bundle --force -v``.
121+
119122
Use the :ref:`container.preload <dic-tags-container-preload>` and
120123
:ref:`container.no_preload <dic-tags-container-nopreload>` service tags to define
121124
which classes should or should not be preloaded by PHP.

0 commit comments

Comments
 (0)