Skip to content
Discussion options

You must be logged in to vote

{% cache %} tags will statically cache the returned HTML output, as well as any JavaScript/CSS registered with {% js %}/{% css %}, etc.. But there’s no way for them cache any variables defined within them, nor would there be any point. When template rendering encounters a {% cache %} tag, the tag will simply check to see if its contents are already cached, and if so, return the cached HTML verbatim, rather than execute any nested tags/HTML.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sander-lameco
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants