feat(cache): option for cache rendered content#3963
Merged
SukkaW merged 1 commit intohexojs:masterfrom Dec 16, 2019
Merged
Conversation
1 similar comment
Contributor
This PR disable it by default though, shouldn't it be enabled for most users? |
Member
Author
|
Most users and theme developers are using hexo-server as a live preview. Only few of them are using hexo-server to serve their website. |
curbengh
approved these changes
Dec 16, 2019
Contributor
|
Possibly supersedes hexojs/hexo-server#76 |
2 tasks
SukkaW
added a commit
to hexojs/hexo-server
that referenced
this pull request
Dec 21, 2019
The feature is introduced in hexojs/hexo#3963
SukkaW
added a commit
to hexojs/hexo-server
that referenced
this pull request
Dec 23, 2019
* docs(README): add description about cache The feature is introduced in hexojs/hexo#3963 * docs(README): update cache description
thom4parisot
pushed a commit
to thom4parisot/hexo
that referenced
this pull request
Jan 17, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does it do?
In #3756, @dailyrandomphoto disabled
cache rendered contentforgenerateand enabled forhexo s.Enabling cache rendered content for
hexo swill respond more quickly from second requests which is helpful when usehexo-serverin production, but it also makes more difficult when developing theme or previewing other changes. So theconfig.server.cacheis introduced in this PR. The documents forhexo-serverwill be updated after this PR is merged and released withhexo@4.3.How to test
Screenshots
Pull request tasks