示例#1
0
    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()
示例#2
0
 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")
示例#4
0
	def on_update(self):
		WebsiteGenerator.on_update(self)
		clear_cache("writers")
示例#5
0
	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()
示例#6
0
 def on_update(self):
     WebsiteGenerator.on_update(self)
     NestedSet.on_update(self)
     clear_cache(website_group=self.name)
示例#7
0
 def on_update(self):
     WebsiteGenerator.on_update(self)
     clear_cache(website_group=self.name)