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

docs: add warn notice for fragment_cache #1151

Merged
merged 2 commits into from
Oct 13, 2019

Conversation

SukkaW
Copy link
Member

@SukkaW SukkaW commented Oct 9, 2019

Check List

Please read and check followings before submitting a PR.

  • Others (Update, fix, translation, etc...)

hexojs/hexo#3738

Some theme developers enable fragment_cache() for partial that will be different depending on the pages appearing in, which causes some issue. This PR add a warning notice to that.

Although we can implement a "smart" partial() helper (like @ppoffice did in his icarus theme) that every partial will have diffrent cache id based on locals the partial haves, but there is a side-effect that all partials will be cached causing huge memory usage.

@SukkaW SukkaW requested a review from curbengh October 9, 2019 17:04
source/docs/templates.md Show resolved Hide resolved
@SukkaW SukkaW requested a review from curbengh October 10, 2019 10:42
source/docs/templates.md Outdated Show resolved Hide resolved
Apply code suggestions from code review by @curbengh
@SukkaW SukkaW merged commit b878817 into hexojs:master Oct 13, 2019
@SukkaW SukkaW deleted the fragment_cache_notice branch October 29, 2019 09:57
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.

3 participants