We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8733f02 commit eba1832Copy full SHA for eba1832
backend/routers/lib/cache.py
@@ -126,13 +126,8 @@ def cache(_, hours=2):
126
def wrapper(func):
127
@wraps(func)
128
async def wrapped(*args, **kwargs):
129
- key_parts = (
130
- [func.__name__]
131
- + list(args)
132
- + list(kwargs.keys())
133
- + list(kwargs.values())
134
- )
135
- key = "-".join(str(k) for k in key_parts)
+ key_parts = list(args) + list(kwargs.keys()) + list(kwargs.values())
+ key = f'{[func.__name__]}:{"-".join(str(k) for k in key_parts)}'
136
result = store.get(key)
137
138
if result is None or not production_environment:
0 commit comments