mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 07:10:27 +08:00
默认不启用MMAP
This commit is contained in:
@@ -56,7 +56,7 @@ func (this *UpdateAction) RunGet(params struct {
|
|||||||
{
|
{
|
||||||
_, ok := cachePolicy.Options["enableMMAP"]
|
_, ok := cachePolicy.Options["enableMMAP"]
|
||||||
if !ok {
|
if !ok {
|
||||||
cachePolicy.Options["enableMMAP"] = true
|
cachePolicy.Options["enableMMAP"] = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<tr v-show="moreOptionsVisible && policyType == 'file'">
|
<tr v-show="moreOptionsVisible && policyType == 'file'">
|
||||||
<td class="color-border">启用MMAP</td>
|
<td class="color-border">启用MMAP</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox name="enableMMAP" checked="checked"></checkbox>
|
<checkbox name="enableMMAP"></checkbox>
|
||||||
<p class="comment">选中后,表示允许系统自动利用MMAP提升缓存读取性能。</p>
|
<p class="comment">选中后,表示允许系统自动利用MMAP提升缓存读取性能。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Tea.context(function () {
|
|||||||
if (this.policyType == "file") {
|
if (this.policyType == "file") {
|
||||||
let options = this.cachePolicy.options
|
let options = this.cachePolicy.options
|
||||||
if (options != null && typeof options == "object" && typeof options["dir"] === "undefined") {
|
if (options != null && typeof options == "object" && typeof options["dir"] === "undefined") {
|
||||||
options["enableMMAP"] = true
|
options["enableMMAP"] = false
|
||||||
options["dir"] = "/opt/cache"
|
options["dir"] = "/opt/cache"
|
||||||
options["memoryPolicy"] = {
|
options["memoryPolicy"] = {
|
||||||
capacity: {
|
capacity: {
|
||||||
|
|||||||
Reference in New Issue
Block a user