perf: avoid clearing cache for newly imported documents
This commit is contained in:
parent
d3c88556bc
commit
c2d2fda212
1 changed files with 2 additions and 1 deletions
|
|
@ -1320,7 +1320,8 @@ class Document(BaseDocument, DocRef):
|
|||
elif self._action == "update_after_submit":
|
||||
self.run_method("on_update_after_submit")
|
||||
|
||||
self.clear_cache()
|
||||
if not (frappe.flags.in_import and self.is_new()):
|
||||
self.clear_cache()
|
||||
|
||||
if self.flags.get("notify_update", True):
|
||||
self.notify_update()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue