Skip to content

Commit a8da8d1

Browse files
javiereguiluzGuikingone
authored andcommitted
Fixed the type of the twig.cache config option
1 parent cd624a9 commit a8da8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/twig.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ application harder to maintain.
239239
cache
240240
~~~~~
241241

242-
**type**: ``string`` **default**: ``'%kernel.cache_dir%/twig'``
242+
**type**: ``string`` | ``false`` | ``Twig\Cache\CacheInterface`` **default**: ``'%kernel.cache_dir%/twig'``
243243

244244
Before using the Twig templates to render some contents, they are compiled into
245245
regular PHP code. Compilation is a costly process, so the result is cached in
246246
the directory defined by this configuration option.
247247

248-
Set this option to ``null`` to disable Twig template compilation. However, this
248+
Set this option to ``false`` to disable Twig template compilation. However, this
249249
is not recommended; not even in the ``dev`` environment, because the
250250
``auto_reload`` option ensures that cached templates which have changed get
251251
compiled again.

0 commit comments

Comments
 (0)