chore: separate out func call key for @redis_cache

This commit is contained in:
Ankush Menat 2023-06-04 13:02:16 +05:30 committed by Ankush Menat
parent 392a506a76
commit a7413fe4a7

View file

@ -150,7 +150,7 @@ def redis_cache(ttl: int | None = 3600, user: str | bool | None = None) -> Calla
@wraps(func)
def redis_cache_wrapper(*args, **kwargs):
func_call_key = func_key + str(__generate_request_cache_key(args, kwargs))
func_call_key = func_key + "::" + str(__generate_request_cache_key(args, kwargs))
if frappe.cache().exists(func_call_key):
return frappe.cache().get_value(func_call_key, user=user)
else: