fix: include languages when clearing website cache

This commit is contained in:
barredterra 2023-07-18 12:53:57 +02:00
parent 9c481cfd68
commit 588bbd9d1c

View file

@ -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()