-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat(cache): option for cache rendered content #3963
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 content
forgenerate
and enabled forhexo s
.Enabling cache rendered content for
hexo s
will respond more quickly from second requests which is helpful when usehexo-server
in production, but it also makes more difficult when developing theme or previewing other changes. So theconfig.server.cache
is introduced in this PR. The documents forhexo-server
will be updated after this PR is merged and released with[email protected]
.How to test
Screenshots
Pull request tasks