feat: centralize app release configuration

This commit is contained in:
richjohnrambo
2026-09-12 17:07:49 +08:00
parent 2728f35069
commit e5fbca735d
13 changed files with 257 additions and 104 deletions
+6
View File
@@ -60,6 +60,7 @@ var (
tenantByIDCache = newConfigCache[*types.Tenant]()
registrationSMSCache = newConfigCache[bool]()
thirdPartyConfigCache = newConfigCache[map[string]string]()
appReleaseConfigCache = newConfigCache[*types.AppRelease]()
thirdPartyConfigAllKeys = "*"
)
@@ -71,6 +72,11 @@ func cloneTenant(t *types.Tenant) *types.Tenant {
return &cp
}
// InvalidateAppReleaseConfigCache clears global client release policies.
func InvalidateAppReleaseConfigCache() {
appReleaseConfigCache.clear()
}
func cloneStringMap(src map[string]string) map[string]string {
if src == nil {
return nil