fix: remove duplicate clear_cache calls (#31374)
This is internally handled in clear_document_cache Fix was only required for websitegenerator specific things.
This commit is contained in:
parent
d8478d7a03
commit
37da1d43bd
1 changed files with 0 additions and 2 deletions
|
|
@ -1314,8 +1314,6 @@ class Document(BaseDocument, DocRef):
|
|||
|
||||
def clear_cache(self):
|
||||
frappe.clear_document_cache(self.doctype, self.name)
|
||||
frappe.db.after_commit.add(lambda: frappe.clear_document_cache(self.doctype, self.name))
|
||||
frappe.db.after_rollback.add(lambda: frappe.clear_document_cache(self.doctype, self.name))
|
||||
|
||||
def reset_seen(self):
|
||||
"""Clear _seen property and set current user as seen"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue