浏览代码

fix: remove tenant_id from cache keys

Yeuoly 8 月之前
父节点
当前提交
ed5c779c7f
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      internal/utils/cache/helper/redis.go

+ 0 - 2
internal/utils/cache/helper/redis.go

@@ -18,7 +18,6 @@ func CombinedGetPluginDeclaration(
 		strings.Join(
 			[]string{
 				string(runtime_type),
-				tenant_id,
 				plugin_unique_identifier.String(),
 			},
 			":",
@@ -42,7 +41,6 @@ func CombinedGetPluginDeclaration(
 				plugin, err := db.GetOne[models.Plugin](
 					db.Equal("plugin_unique_identifier", plugin_unique_identifier.String()),
 					db.Equal("install_type", string(plugin_entities.PLUGIN_RUNTIME_TYPE_REMOTE)),
-					db.Equal("tenant_id", tenant_id),
 				)
 				if err != nil && err != db.ErrDatabaseNotFound {
 					return nil, err