Skip to content

Commit f14a051

Browse files
committed
minor #12909 Hint for generating container preload file (Basster)
This PR was merged into the 4.4 branch. Discussion ---------- Hint for generating container preload file The container preload file will only be generated when both factories and class_loader are inline, so you need to set both parameters to `true` explicitly. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 0e6a885 Hint for generating container preload file
2 parents 2bea406 + 0e6a885 commit f14a051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

performance.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ with the ``preload`` suffix:
113113
114114
.. _performance-configure-opcache:
115115

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+
116120
Configure OPcache for Maximum Performance
117121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118122

0 commit comments

Comments
 (0)