默认不启用MMAP

This commit is contained in:
GoEdgeLab
2024-05-01 12:51:24 +08:00
parent 6cb32d657f
commit 772ec1ac38
3 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@
<tr v-show="moreOptionsVisible && policyType == 'file'">
<td class="color-border">启用MMAP</td>
<td>
<checkbox name="enableMMAP" checked="checked"></checkbox>
<checkbox name="enableMMAP"></checkbox>
<p class="comment">选中后表示允许系统自动利用MMAP提升缓存读取性能。</p>
</td>
</tr>

View File

@@ -12,7 +12,7 @@ Tea.context(function () {
if (this.policyType == "file") {
let options = this.cachePolicy.options
if (options != null && typeof options == "object" && typeof options["dir"] === "undefined") {
options["enableMMAP"] = true
options["enableMMAP"] = false
options["dir"] = "/opt/cache"
options["memoryPolicy"] = {
capacity: {