fix getinfo cache

This commit is contained in:
bluepilledgreat 2023-10-04 12:25:37 +01:00
parent 05c643a860
commit c8b6395f99

View File

@ -75,12 +75,13 @@
App.Logger.WriteLine(LOG_IDENT, $"Getting deploy info for channel {channel} (extraInformation={extraInformation})");
string cacheKey = $"{channel}-{binaryType}";
ClientVersion clientVersion;
if (ClientVersionCache.ContainsKey(channel))
if (ClientVersionCache.ContainsKey(cacheKey))
{
App.Logger.WriteLine(LOG_IDENT, "Deploy information is cached");
clientVersion = ClientVersionCache[channel];
clientVersion = ClientVersionCache[cacheKey];
}
else
{
@ -147,7 +148,7 @@
}
}
ClientVersionCache[channel] = clientVersion;
ClientVersionCache[cacheKey] = clientVersion;
return clientVersion;
}