fix: clear notifications cache when deleting a Notification
This commit is contained in:
parent
2866721a78
commit
c5face41b3
1 changed files with 3 additions and 0 deletions
|
|
@ -387,6 +387,9 @@ def get_context(context):
|
|||
if not is_html(self.message):
|
||||
self.message = frappe.utils.md_to_html(self.message)
|
||||
|
||||
def on_trash(self):
|
||||
frappe.cache().hdel("notifications", self.document_type)
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_documents_for_today(notification):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue