perf: Use client-cached website settings
This commit is contained in:
parent
b49d512404
commit
aed412f9eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue