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

Appearance settings

TemplateCacheWarmer ignores twig.cache configuration #28009

Copy link
Copy link
Closed
@nesl247

Description

@nesl247
Issue body actions

Symfony version(s) affected: 4.1.1

Description
Symfony's twig-bundle is ignoring the twig.cache configuration, and still attempting to warm the cache.

How to reproduce
Change twig.cache to false and run cache:clear with symfony/twig-bundle installed.

Possible Solution

Additional context
The reason this is problematic is in my case, we are loading templates from a DB. We do not want these templates to be fetched ahead of time, as there are a ton of them (potentially thousands).

This is related to symfony/symfony-docs#10101 in which the documentation incorrectly specifies how to disable caching.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.