Skip to content

TemplateCacheWarmer ignores twig.cache configuration #28009

Closed
@nesl247

Description

@nesl247

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