Skip to content

Commit

Permalink
fix: minor chronology change
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Sep 7, 2023
1 parent 42e801b commit de0794b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit de0794b

Please sign in to comment.