diff options
author | 2022-04-30 19:17:59 +0200 | |
---|---|---|
committer | 2022-04-30 19:26:08 +0200 | |
commit | e2b56247947effd65f3ee821259176607f292eed (patch) | |
tree | 639cb77d4b6839ec5e2f3496730d83f030303172 | |
parent | expire internal cache according to redis' TTL instead of always a week (diff) |
Fix set_expires being set to a set instead of a dict
-rw-r--r-- | bot/exts/info/doc/_redis_cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_redis_cache.py b/bot/exts/info/doc/_redis_cache.py index 95d6630f0..45ef03352 100644 --- a/bot/exts/info/doc/_redis_cache.py +++ b/bot/exts/info/doc/_redis_cache.py @@ -73,7 +73,9 @@ class DocRedisCache(RedisObject): ] if package_keys: await connection.delete(*package_keys) - self._set_expires = {key for key in self._set_expires if not fnmatch.fnmatchcase(key, pattern)} + self._set_expires = { + key: expire for key, expire in self._set_expires.items() if not fnmatch.fnmatchcase(key, pattern) + } return True return False |