diff --git a/pkg/serverconfigs/http_cache_policy.go b/pkg/serverconfigs/http_cache_policy.go index 606fcfa..26088d7 100644 --- a/pkg/serverconfigs/http_cache_policy.go +++ b/pkg/serverconfigs/http_cache_policy.go @@ -33,7 +33,7 @@ func (this *HTTPCachePolicy) Init() error { this.capacity = this.Capacity.Bytes() } - if this.maxSize > 0 { + if this.MaxSize != nil { this.maxSize = this.MaxSize.Bytes() }