We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1d5cc commit e484cc8Copy full SHA for e484cc8
lib/layout.js
@@ -103,8 +103,10 @@ class Layout {
103
result += this.core._parse(content);
104
}
105
106
- // 写入缓存(异步)
107
- this.writeCache(cacheFilename, result);
+ if (options.cache) {
+ // 写入缓存(异步)
108
+ this.writeCache(cacheFilename, result);
109
+ }
110
111
callback(null, result);
112
});
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cb-template",
3
- "version": "1.3.8",
+ "version": "1.3.9",
4
"description": "唱吧模板引擎",
5
"main": "index.js",
6
"scripts": {
0 commit comments