From e510cb2649afbf21efb10418d02e1561d8f3e00a Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Mar 2024 09:58:33 +0800 Subject: [PATCH] Refactor caching of public root path in SUI core --- sui/core/sui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sui/core/sui.go b/sui/core/sui.go index b0e32c8c..44e465e4 100644 --- a/sui/core/sui.go +++ b/sui/core/sui.go @@ -74,10 +74,10 @@ func (sui *DSL) PublicRootWithSid(sid string) (string, error) { // PublicRoot returns the public root path func (sui *DSL) PublicRoot(data map[string]interface{}) (string, error) { - // Cache the public root - if sui.publicRoot != "" { - return sui.publicRoot, nil - } + // Cache the public root (Close the cache) + // if sui.publicRoot != "" { + // return sui.publicRoot, nil + // } if data == nil { data = map[string]interface{}{}