mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 00:05:41 -05:00
Rework chache handling
* No longer provide multiple HTTP helper functions with the same name * Default to cache not being used * Explicitly use the cache for certain Twitch actions and conditions * Clear caches on shutdown to avoid leaks being reported
This commit is contained in:
@@ -37,7 +37,7 @@ std::string TwitchChannel::GetUserID(const TwitchToken &token) const
|
||||
}
|
||||
|
||||
auto res = SendGetRequest(token, "https://api.twitch.tv",
|
||||
"/helix/users", {{"login", _name}});
|
||||
"/helix/users", {{"login", _name}}, true);
|
||||
|
||||
if (res.status == 400) {
|
||||
userIDCache[_name] = "invalid";
|
||||
|
||||
Reference in New Issue
Block a user