From ca5ca7139ee470b2d5cf792859cdf01194138518 Mon Sep 17 00:00:00 2001 From: Sukka Date: Sat, 21 Dec 2019 16:35:54 +0800 Subject: [PATCH 1/2] docs(README): add description about cache The feature is introduced in https://github.com/hexojs/hexo/pull/3963 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 91aa2ca..f27f882 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ server: log: false ip: 0.0.0.0 compress: false + cache: false header: true serveStatic: extensions: @@ -45,6 +46,8 @@ server: - **log**: Display request info on the console. Always enabled in debug mode. - **ip**: Server IP - **compress**: Enable GZIP compression +- **cache**: Enable cache for rendered content + - Enable the cache will let hexo-server respond to the second request much quicker, but your changes will no longer make effects in real time. - **header**: Add `X-Powered-By: Hexo` header - **serveStatic**: Extra options passed to [serve-static](https://github.com/expressjs/serve-static#options) From 1ad453509214f5dc35b6241fd15f90d7e9413f09 Mon Sep 17 00:00:00 2001 From: Sukka Date: Sat, 21 Dec 2019 18:19:18 +0800 Subject: [PATCH 2/2] docs(README): update cache description --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f27f882..eeeec90 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,8 @@ server: - **ip**: Server IP - **compress**: Enable GZIP compression - **cache**: Enable cache for rendered content - - Enable the cache will let hexo-server respond to the second request much quicker, but your changes will no longer make effects in real time. + - This can speed up server response. However, any changes will no longer take effect in real time. + - Suitable for production environment only. - **header**: Add `X-Powered-By: Hexo` header - **serveStatic**: Extra options passed to [serve-static](https://github.com/expressjs/serve-static#options)