fix: set proper cache key for singles when name is passed as None (#18667)
[skip ci]
This commit is contained in:
parent
9c0e111383
commit
764370f3c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1115,7 +1115,7 @@ def can_cache_doc(args) -> str | None:
|
|||
return
|
||||
|
||||
doctype = args[0]
|
||||
name = doctype if len(args) == 1 else args[1]
|
||||
name = doctype if len(args) == 1 or args[1] is None else args[1]
|
||||
|
||||
# Only cache if both doctype and name are strings
|
||||
if isinstance(doctype, str) and isinstance(name, str):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue