Skip to content

Commit 2832b1f

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Update location of preloading file
2 parents 5845742 + d55b431 commit 2832b1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

performance.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ make them available to all requests until the server is restarted, improving
110110
performance significantly.
111111

112112
During container compilation (e.g. when running the ``cache:clear`` command),
113-
Symfony generates a file called ``.preload`` (with a leading ``.``) in the
114-
``src/`` directory with the list of classes to preload.
113+
Symfony generates a file called ``preload.php`` in the ``config/`` directory
114+
with the list of classes to preload.
115115

116116
The only requirement is that you need to set both ``container.dumper.inline_factories``
117117
and ``container.dumper.inline_class_loader`` parameters to ``true``. Then, you
@@ -120,7 +120,7 @@ can configure PHP to use this preload file:
120120
.. code-block:: ini
121121
122122
; php.ini
123-
opcache.preload=/path/to/project/src/.preload.php
123+
opcache.preload=/path/to/project/config/preload.php
124124
125125
Use the :ref:`container.preload <dic-tags-container-preload>` and
126126
:ref:`container.no_preload <dic-tags-container-nopreload>` service tags to define

0 commit comments

Comments
 (0)