Skip to content

Why isn't include_cached tag used in _layouts/single.html (and other layouts)? #3794

Answered by iBug
jlconlin asked this question in Q&A
Discussion options

You must be logged in to vote

Because include_cached reuses previously rendered results based only on the {% include %} directive. All includes in single.html refers to the current page via either {{ page.* }} or {{ post.* }}. If include_cached is used, all posts would contain wrong information except the first post processed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jlconlin
Comment options

Answer selected by jlconlin
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