Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache tag should cache added context variables #11

Open
ironfroggy opened this issue Jul 31, 2013 · 0 comments
Open

cache tag should cache added context variables #11

ironfroggy opened this issue Jul 31, 2013 · 0 comments

Comments

@ironfroggy
Copy link
Owner

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 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant