From caa7072cf0148d21593383e52ebd00a1ae8cf9ff Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 13 Feb 2021 12:45:05 +0000 Subject: [PATCH] add CDNClient.clear_cache(); fix #291 --- steam/client/cdn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/steam/client/cdn.py b/steam/client/cdn.py index 8971af2..4e14b3f 100644 --- a/steam/client/cdn.py +++ b/steam/client/cdn.py @@ -466,6 +466,12 @@ class CDNClient(object): self.load_licenses() + def clear_cache(self): + """Cleared cached information. Next call on methods with caching will return fresh data""" + self.manifests.clear() + self.app_depots.clear() + self.beta_passwords.clear() + def load_licenses(self): """Read licenses from SteamClient instance, required for determining accessible content""" self.licensed_app_ids.clear()