mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-05-13 11:44:44 -07:00
fix getinfo cache
This commit is contained in:
parent
05c643a860
commit
c8b6395f99
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user