[fix] command clear-website-cache
This commit is contained in:
parent
298f5085d6
commit
bf4e0681c4
1 changed files with 2 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue