Skip to content

Commit

Permalink
Merge pull request frappe#28326 from gavindsouza/eps-clear_bootinfo
Browse files Browse the repository at this point in the history
fix: Clear cache when EPS enabled/disabled
  • Loading branch information
gavindsouza authored Oct 30, 2024
2 parents e0a84e0 + ae59252 commit c01ea09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class EnergyPointSettings(Document):
review_levels: DF.Table[ReviewLevel]
# end: auto-generated types

pass
def on_update(self):
if self.has_value_changed("enabled"):
frappe.cache.delete_key("bootinfo")


def is_energy_point_enabled():
Expand Down

0 comments on commit c01ea09

Please sign in to comment.