-
-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(cache): option for cache rendered content #3963
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
Conversation
1 similar comment
This PR disable it by default though, shouldn't it be enabled for most users? |
|
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. |
|
Possibly supersedes hexojs/hexo-server#76 |
The feature is introduced in hexojs/hexo#3963
* docs(README): add description about cache The feature is introduced in hexojs/hexo#3963 * docs(README): update cache description
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