Skip to content

Conversation

@ashmaroli
Copy link
Member

Closes #162

Summary

Jekyll 4.0 caches parsed Liquid Templates. Therefore, when {% github_edit_link %} is used through a layout or an include, there is just one instance of Jekyll::GitHubMetadata::EditLinkTag in memory.

This poses a problem when attributes required for rendering the tag are memoized, resulting in the output of the same result for every page.

The changes proposed here allows compatibility with Jekyll 3.x where memoization improves performance and avoids memoizing when using Jekyll 4.0

@DirtyF DirtyF mentioned this pull request Mar 18, 2019
21 tasks
@ashmaroli
Copy link
Member Author

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit bd3e22e into jekyll:master Aug 4, 2019
jekyllbot added a commit that referenced this pull request Aug 4, 2019
@ashmaroli ashmaroli deleted the conditionally-memoize branch August 4, 2019 15:28
@jekyll jekyll locked and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants