You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a very basic vanilla Twig configuration and just started creating my first Twig templates, and noticed my templates are not being cached.
When running php app/console debug:container --env dev --show-private --tag kernel.cache_warmer the TemplateCacheCacheWarmer service does not appear - this is also the case when reinstalling Symfony without doing any configuration or changes at all. When running php app/console cache:warmup in a new project, the twig directory in /app/cache/dev (or /app/cache/prod) is not being created and no templates are "warmed up".
Does template caching have to be enabled or configured? I could not find anything in the documentation or anywhere else on how to enable template warmup caching.
The text was updated successfully, but these errors were encountered:
This PR was merged into the 2.7 branch.
Discussion
----------
[TwigBundle] Fix Twig cache is not properly warmed
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #15982
| License | MIT
| Doc PR | -
Alternative to #15034
Commits
-------
e704ee4 [TwigBundle] Fix Twig cache is not properly warmed
I use a very basic vanilla Twig configuration and just started creating my first Twig templates, and noticed my templates are not being cached.
When running
php app/console debug:container --env dev --show-private --tag kernel.cache_warmer
the TemplateCacheCacheWarmer service does not appear - this is also the case when reinstalling Symfony without doing any configuration or changes at all. When runningphp app/console cache:warmup
in a new project, the twig directory in /app/cache/dev (or /app/cache/prod) is not being created and no templates are "warmed up".Does template caching have to be enabled or configured? I could not find anything in the documentation or anywhere else on how to enable template warmup caching.
The text was updated successfully, but these errors were encountered: