Skip to content

Twig cache documentation shows using null instead of false #10101

Closed
@nesl247

Description

@nesl247

https://github.com/symfony/symfony-docs/blob/master/reference/configuration/twig.rst#cache shows that we need to specify null if we want to disable cache. However, https://github.com/twigphp/Twig/blob/60a8f465d6f259c92a8fe0fb61cf8f767bd8d025/lib/Twig/Environment.php#L247 states that we need false instead.

Also, the type is either string|bool|Twig_CacheInterface. I'm not sure if the docs support multi-types though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions