fix: simplify defaults._clear_cache (#17485)
This commit is contained in:
parent
fbb89bdfe9
commit
7a59fc7ecf
1 changed files with 1 additions and 5 deletions
|
|
@ -241,8 +241,4 @@ def get_defaults_for(parent="__default"):
|
|||
|
||||
|
||||
def _clear_cache(parent):
|
||||
if parent in common_default_keys:
|
||||
frappe.clear_cache()
|
||||
else:
|
||||
clear_notifications(user=parent)
|
||||
frappe.clear_cache(user=parent)
|
||||
frappe.clear_cache(user=parent if parent not in common_default_keys else None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue