diff --git a/app/api/services/base_service.py b/app/api/services/base_service.py index eaa0c00..1eb39f6 100644 --- a/app/api/services/base_service.py +++ b/app/api/services/base_service.py @@ -402,6 +402,9 @@ class BaseService: password=BaseService.CACHE_PASSWORD, decode_responses=True) + if r.exists(cacheKey): + r.unlink(cacheKey) + # Set a key 'foo' with value 'bar' json_string = json.dumps(cacheData, indent=4) r.set(cacheKey, json_string, ex=120)