text: # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
  # MIT License. See license.txt
  
  # For license information, please see license.txt
  
  from __future__ import unicode_literals
  import frappe
  
  from frappe.model.document import Document
  
  class WebsiteScript(Document):
  
  	def on_update(self):
  		"""clear cache"""
  		frappe.clear_cache(user = 'Guest')
  
  		from frappe.website.render import clear_cache
  		clear_cache()