def on_update(self): WebsiteGenerator.on_update(self) # clear all cache if it has toc if self.doclist.get({"parentfield": "toc"}): from frappe.website.render import clear_cache clear_cache()
def on_update(self): NestedSet.on_update(self) WebsiteGenerator.on_update(self) invalidate_cache_for(self) self.validate_name_with_item() self.validate_one_root()
def on_update(self): WebsiteGenerator.on_update(self) clear_cache("writers")
def on_update(self): WebsiteGenerator.on_update(self) NestedSet.on_update(self) clear_cache(website_group=self.name)
def on_update(self): WebsiteGenerator.on_update(self) clear_cache(website_group=self.name)