Selaa lähdekoodia

fix: missing typename in cache

Yeuoly 10 kuukautta sitten
vanhempi
commit
3e4fe6d4ac
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      internal/db/cache.go

+ 1 - 1
internal/db/cache.go

@@ -24,7 +24,7 @@ type GetCachePayload[T any] struct {
 }
 
 func joinCacheKey(typename string, pairs []KeyValuePair) string {
-	cache_key := CACHE_PREFIX
+	cache_key := CACHE_PREFIX + ":" + typename
 	for _, kv := range pairs {
 		cache_key += ":" + kv.Key + ":"
 		// convert value to string