File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,22 @@ which the cache can serve a stale response when an error is encountered
144144(default: 60). This setting is overridden by the stale-if-error HTTP
145145Cache-Control extension (see RFC 5861).
146146
147+ terminate_on_cache_hit
148+ ......................
149+
150+ **type **: ``boolean `` **default **: ``true ``
151+
152+ If ``true ``, the :ref: `kernel.terminate <component-http-kernel-kernel-terminate >`
153+ event is dispatched even when the cache is hit.
154+
155+ Unless your application needs to process events on cache hits, it's recommended
156+ to set this to ``false `` to improve performance, because it avoids having to
157+ bootstrap the Symfony framework on a cache hit.
158+
159+ .. versionadded :: 6.2
160+
161+ The ``terminate_on_cache_hit `` option was introduced in Symfony 6.2.
162+
147163 .. _configuration-framework-http_method_override :
148164
149165http_method_override
You can’t perform that action at this time.
0 commit comments