8000 fix: cache link tag rendering for performance by quanghuynguyen1902 · Pull Request #9840 · jekyll/jekyll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: cache link tag rendering for performance #9840

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quanghuynguyen1902
Copy link

This is a 🙋 feature or enhancement.

Summary

Cache the rendered value of {% link %} tags to avoid
redundant Liquid template parsing for the same link within a
rendering context.

Context

Resolves #9827

The {% link %} tag currently re-renders its Liquid template
on every call, even when used multiple times with the same
path in the same context. This PR adds caching to store the
rendered value, reducing unnecessary template parsing and
improving build performance for sites with repeated link tags.

@ashmaroli
Copy link
Member

Hello @quanghuynguyen1902, do you have any benchmark results to demonstrate improvement in performance?

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

Successfully merging this pull request may close these issues.

feat: Optimization oportunity for tag {% link %}
2 participants
0