Update
This commit is contained in:
@@ -8,6 +8,7 @@ namespace UIFixes.util {
|
||||
static Dictionary<string, CachePrice> cache = new Dictionary<string, CachePrice>();
|
||||
|
||||
public static double? FetchPrice(string templateId) {
|
||||
Console.WriteLine($"Get price for {templateId}");
|
||||
if (cache.ContainsKey(templateId)) {
|
||||
double secondsSinceLastUpdate = (DateTime.Now - cache[templateId].lastUpdate).TotalSeconds;
|
||||
if (secondsSinceLastUpdate > 300)
|
||||
|
Reference in New Issue
Block a user