File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,17 @@ Use the OPcache class preloading
53
53
The feature that generates the preloading file was introduced in Symfony 4.4.
54
54
55
55
Starting from PHP 7.4, OPcache can compile and load classes at start-up and
56
- make them available to all requests until the server is shut down, improving
57
- performance significantly. Symfony generates automatically the file with the
58
- list of classes to preload:
56
+ make them available to all requests until the server is restarted, improving
57
+ performance significantly.
58
+
59
+ Symfony generates the file automatically with the list of classes to preload.
60
+ The file path is the same as the file generated for the service container but
61
+ with the ``preload `` suffix:
59
62
60
63
.. code-block :: ini
61
64
62
65
; php.ini
63
- opcache.preload =/path/to/project/var/cache/prod/srcApp_KernelProdContainer .preload.php
66
+ opcache.preload =/path/to/project/var/cache/prod/App_KernelProdContainer .preload.php
64
67
65
68
.. _performance-configure-opcache :
66
69
You can’t perform that action at this time.
0 commit comments