@click.command(u'clear-website-cache')
@pass_context
def clear_website_cache(context):
 import frappe.website.render
 for site in context.sites:
  try:
   frappe.init(site=site)
   frappe.connect()
   frappe.website.render.clear_cache()
  finally:
   frappe.destroy()

@ click . command ( u'clear-website-cache' ) @ pass_context def clear_website_cache ( context ) : import frappe . website . render for site in context . sites : try : frappe . init ( site = site ) frappe . connect ( ) frappe . website . render . clear_cache ( ) finally : frappe . destroy ( )
clear website cache .