fix: include languages when clearing website cache
This commit is contained in:
parent
9c481cfd68
commit
588bbd9d1c
1 changed files with 8 additions and 1 deletions
|
|
@ -357,7 +357,14 @@ def clear_cache(path=None):
|
|||
:param path: (optional) for the given path"""
|
||||
from frappe.website.router import clear_routing_cache
|
||||
|
||||
for key in ("website_generator_routes", "website_pages", "website_full_index", "sitemap_routes"):
|
||||
for key in (
|
||||
"website_generator_routes",
|
||||
"website_pages",
|
||||
"website_full_index",
|
||||
"sitemap_routes",
|
||||
"languages_with_name",
|
||||
"languages",
|
||||
):
|
||||
frappe.cache.delete_value(key)
|
||||
|
||||
clear_routing_cache()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue