aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/utils/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/cache.py b/bot/utils/cache.py
index 1c0935faa..96e1aef95 100644
--- a/bot/utils/cache.py
+++ b/bot/utils/cache.py
@@ -21,7 +21,7 @@ def async_cache(max_size: int = 128, arg_offset: int = 0) -> Callable:
"""Decorator wrapper for the caching logic."""
key = ':'.join(str(args[arg_offset:]))
- if key in async_cache.cache:
+ if key not in async_cache.cache:
if len(async_cache.cache) > max_size:
async_cache.cache.popitem(last=False)