From 0a6f136c689b0ae565d808cbb69600203472a619 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 15 Mar 2022 21:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E9=80=89=E9=A1=B9=E6=97=B6=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E5=88=9D=E5=A7=8B=E5=8C=96=E5=86=85=E5=AD=98=E7=AD=96?= =?UTF-8?q?=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_cache_storage_file.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/serverconfigs/http_cache_storage_file.go b/pkg/serverconfigs/http_cache_storage_file.go index a43c11b..9b9c328 100644 --- a/pkg/serverconfigs/http_cache_storage_file.go +++ b/pkg/serverconfigs/http_cache_storage_file.go @@ -15,5 +15,13 @@ func (this *HTTPFileCacheStorage) Init() error { return err } } + + if this.MemoryPolicy != nil { + err := this.MemoryPolicy.Init() + if err != nil { + return err + } + } + return nil }