Skip to content

Commit

Permalink
add CDNClient.clear_cache(); fix ValvePython#291
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Feb 13, 2021
1 parent 33d2279 commit caa7072
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions steam/client/cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ def __init__(self, client):

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()
Expand Down

0 comments on commit caa7072

Please sign in to comment.