Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3725fc

Browse files
committed
[TwigBundle] Describe the new behaviour of twig.cache config
Signed-off-by: Quentin Devos <4972091+Okhoshi@users.noreply.github.com>
1 parentc4e1eaa commite3725fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎reference/configuration/twig.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ application harder to maintain.
7171
cache
7272
~~~~~
7373

74-
**type**: ``string`` | ``false`` **default**: ``%kernel.cache_dir%/twig``
74+
**type**: ``string`` | ``boolean`` **default**: ``true``
7575

7676
Before using the Twig templates to render some contents, they are compiled into
7777
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
8282
``auto_reload`` option ensures that cached templates which have changed get
8383
compiled again.
8484

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+
8591
charset
8692
~~~~~~~
8793

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp