[fix] command clear-website-cache

This commit is contained in:
Rushabh Mehta 2015-05-12 11:45:14 +05:30
parent 298f5085d6
commit bf4e0681c4

View file

@ -208,9 +208,8 @@ def set_content_type(response, data, path):
def clear_cache(path=None):
frappe.cache().delete_value("website_generator_routes")
if path:
delete_page_cache(path)
else:
delete_page_cache(path)
if not path:
clear_sitemap()
frappe.clear_cache("Guest")
frappe.cache().delete_value("_website_pages")