mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-02 07:58:46 +00:00
fix(cache): set version in instance by host (#10645)
# Which Problems Are Solved We noticed a rapid growth of Redis memory usage. Instance By host did not set the zitadel version, so instance entries got set on every request again. # How the Problems Are Solved Set the version # Additional Changes - none # Additional Context - internal incident
This commit is contained in:
@@ -225,6 +225,7 @@ func (q *Queries) InstanceByHost(ctx context.Context, instanceHost, publicHost s
|
||||
if err = q.client.QueryRowContext(ctx, scan, instanceByDomainQuery, instanceDomain); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
instance.ZitadelVersion = build.Version()
|
||||
q.caches.instance.Set(ctx, instance)
|
||||
|
||||
return instance, instance.checkDomain(instanceDomain, publicDomain)
|
||||
|
||||
Reference in New Issue
Block a user