perf: Use client-cached website settings

This commit is contained in:
Ankush Menat 2025-01-14 14:36:35 +05:30
parent b49d512404
commit aed412f9eb

View file

@ -171,7 +171,7 @@ class WebsiteSettings(Document):
def get_website_settings(context=None):
hooks = frappe.get_hooks()
context = frappe._dict(context or {})
settings: WebsiteSettings = frappe.get_cached_doc("Website Settings")
settings: WebsiteSettings = frappe.client_cache.get_doc("Website Settings")
context = context.update(
{