Skip to content

Commit 3af2345

Browse files
committed
Minor tweak
1 parent f14a051 commit 3af2345

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

performance.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ Starting from PHP 7.4, OPcache can compile and load classes at start-up and
102102
make them available to all requests until the server is restarted, improving
103103
performance significantly.
104104

105-
Symfony generates the file automatically with the list of classes to preload.
106-
The file path is the same as the file generated for the service container but
107-
with the ``preload`` suffix:
105+
During container compilation, Symfony generates the file with the list of
106+
classes to preload. The only requirement is that you need to set both
107+
``container.dumper.inline_factories`` and ``container.dumper.inline_class_loader``
108+
parameters to ``true``.
109+
110+
The preload file path is the same as the compiled service container but with the
111+
``preload`` suffix:
108112

109113
.. code-block:: ini
110114
@@ -113,10 +117,6 @@ with the ``preload`` suffix:
113117
114118
.. _performance-configure-opcache:
115119

116-
You need to set both parameters ``container.dumper.inline_factories`` and
117-
``container.dumper.inline_class_loader`` to ``true`` to enable generating
118-
the ``preload`` file during container compilation.
119-
120120
Configure OPcache for Maximum Performance
121121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122122

0 commit comments

Comments
 (0)