File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ application harder to maintain.
71
71
cache
72
72
~~~~~
73
73
74
- **type **: ``string `` | ``false `` **default **: ``%kernel.cache_dir%/twig ``
74
+ **type **: ``string `` | ``boolean `` **default **: ``true ``
75
75
76
76
Before using the Twig templates to render some contents, they are compiled into
77
77
regular PHP code. Compilation is a costly process, so the result is cached in
@@ -82,6 +82,16 @@ is not recommended; not even in the ``dev`` environment, because the
82
82
``auto_reload `` option ensures that cached templates which have changed get
83
83
compiled again.
84
84
85
+ Specify the path where the cache should be stored. If set to ``true ``, the cache
86
+ defaults to ``%kernel.cache_dir%/twig ``. However, if the ``auto_reload `` option is
87
+ disabled and ``%kernel.build_dir% `` is different from ``%kernel.cache_dir% ``,
88
+ the cache will instead be stored in ``%kernel.build_dir%/twig ``.
89
+
90
+ .. versionadded :: 7.3
91
+
92
+ Support for ``true `` value was added in Symfony 7.3, and it became the default
93
+ value for this option instead of ``%kernel.cache_dir%/twig ``.
94
+
85
95
charset
86
96
~~~~~~~
87
97
You can’t perform that action at this time.
0 commit comments