fix: simplify defaults._clear_cache (#17485)

This commit is contained in:
Sagar Vora 2022-07-12 15:15:49 +00:00 committed by GitHub
parent fbb89bdfe9
commit 7a59fc7ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)