From de0794b0fd48c0f046025ee138d0157dbe505ad6 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:15:41 +0530 Subject: [PATCH] fix: minor chronology change --- db-connector.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db-connector.go b/db-connector.go index f2423ba..5432243 100755 --- a/db-connector.go +++ b/db-connector.go @@ -628,6 +628,9 @@ func SetCache(ctx context.Context, name string, data []byte, expiration int32) e return nil } + // Maxsize ish~ + name = strings.Replace(name, " ", "_", -1) + if (encryptionEnabled) { // since we need to store cache key as encrypted, // we need to encrypt the name string and store it like that @@ -642,9 +645,6 @@ func SetCache(ctx context.Context, name string, data []byte, expiration int32) e } } - // Maxsize ish~ - name = strings.Replace(name, " ", "_", -1) - // Splitting into multiple cache items //if project.Environment == "cloud" || len(memcached) > 0 { if len(memcached) > 0 {