chore: separate out func call key for @redis_cache
This commit is contained in:
parent
392a506a76
commit
a7413fe4a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue