From 3e79840fe647e6ee7a9c73bfde3eddda4eae6a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 29 Mar 2024 18:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8MMAP=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E8=AF=BB=E5=8F=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_cache_policy_dao.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/db/models/http_cache_policy_dao.go b/internal/db/models/http_cache_policy_dao.go index f7f28523..78159385 100644 --- a/internal/db/models/http_cache_policy_dao.go +++ b/internal/db/models/http_cache_policy_dao.go @@ -174,7 +174,8 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string } var storageOptions = &serverconfigs.HTTPFileCacheStorage{ - Dir: "/opt/cache", + Dir: "/opt/cache", + EnableMMAP: true, MemoryPolicy: &serverconfigs.HTTPCachePolicy{ Capacity: &shared.SizeCapacity{ Count: 1,