You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2024/01/08 13:29:11 UTC

(servicecomb-service-center) 01/01: extend the time to reset cache (#1440)

This is an automated email from the ASF dual-hosted git repository.

littlecui pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git

commit 87aa51362fc437ade739bb8ad4711554406cc1be
Author: tornado-ssy <64...@users.noreply.github.com>
AuthorDate: Wed Dec 27 22:20:12 2023 +0800

    extend the time to reset cache (#1440)
    
    Co-authored-by: songshiyuan 00649746 <so...@huawei.com>
---
 server/config/config.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/config/config.go b/server/config/config.go
index 05178efc..f0af627f 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -25,21 +25,22 @@ import (
 	"runtime"
 	"time"
 
+	"github.com/go-chassis/go-archaius"
+
 	"github.com/apache/servicecomb-service-center/pkg/log"
 	"github.com/apache/servicecomb-service-center/pkg/plugin"
 	"github.com/apache/servicecomb-service-center/pkg/util"
 	"github.com/apache/servicecomb-service-center/version"
-	"github.com/go-chassis/go-archaius"
 )
 
 const (
 	InitVersion = "0"
-	minCacheTTL = 5 * time.Minute
+	minCacheTTL = 60 * time.Minute
 )
 
 var (
 	Server = NewServerConfig()
-	//App is application root config
+	// App is application root config
 	App = &AppConfig{Server: Server}
 )