Skip to content

Commit

Permalink
Merge pull request frappe#21895 from cogk/fix-clear-bootinfo-cache-on…
Browse files Browse the repository at this point in the history
…-workspace-creation

fix(Workspace): Clear bootinfo cache when creating a new workspace
  • Loading branch information
ankush authored Aug 8, 2023
2 parents 76c6924 + 881240e commit 9b52718
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frappe/desk/doctype/workspace/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def validate(self):
except Exception:
frappe.throw(_("Content data shoud be a list"))

def clear_cache(self):
super().clear_cache()
if self.for_user:
frappe.cache.hdel("bootinfo", self.for_user)
else:
frappe.cache.delete_key("bootinfo")

def on_update(self):
if disable_saving_as_public():
return
Expand Down

0 comments on commit 9b52718

Please sign in to comment.