We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc4e1eaa commite3725fcCopy full SHA for e3725fc
reference/configuration/twig.rst
@@ -71,7 +71,7 @@ application harder to maintain.
71
cache
72
~~~~~
73
74
-**type**: ``string`` | ``false`` **default**: ``%kernel.cache_dir%/twig``
+**type**: ``string`` | ``boolean`` **default**: ``true``
75
76
Before using the Twig templates to render some contents, they are compiled into
77
regular PHP code. Compilation is a costly process, so the result is cached in
@@ -82,6 +82,12 @@ is not recommended; not even in the ``dev`` environment, because the
82
``auto_reload`` option ensures that cached templates which have changed get
83
compiled again.
84
85
+Set this option to the path where the cache should be stored. If set to
86
+``true``, the cache is stored in ``%kernel.cache_dir%/twig``. However, if the
87
+``auto_reload`` option is not enabled and ``%kernel.build_dir`` is configured
88
+to be different than ``%kernel.cache_dir``, the cache is stored in
89
+``%kernel.build_dir%/twig``.
90
+
91
charset
92
~~~~~~~
93