From c8b6395f9998ba121293896b162c35609e0185d2 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:25:37 +0100 Subject: [PATCH] fix getinfo cache --- Bloxstrap/RobloxDeployment.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Bloxstrap/RobloxDeployment.cs b/Bloxstrap/RobloxDeployment.cs index ecf2c31..3d6d13b 100644 --- a/Bloxstrap/RobloxDeployment.cs +++ b/Bloxstrap/RobloxDeployment.cs @@ -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; }