Skip to content

cache tag should cache added context variables #11

@ironfroggy

Description

@ironfroggy

If you have a {% cache %} tag and inside this any tags insert new variables into the context, they should be cached along with the rendered result and inserted in the future.

{% cache key exp %}
    {% get_related_posts as related_posts %}
{% endcache %}

{% for post in related_posts %}
   ....
{% endfor %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions