perf: use cached navbar
This commit is contained in:
parent
8b631dc0ed
commit
b2ff5e6125
1 changed files with 4 additions and 2 deletions
|
|
@ -24,8 +24,10 @@ class NavbarSettings(Document):
|
|||
|
||||
|
||||
def get_app_logo():
|
||||
app_logo = frappe.get_website_settings("app_logo") or frappe.db.get_single_value(
|
||||
"Navbar Settings", "app_logo", cache=True
|
||||
app_logo = frappe.get_website_settings("app_logo") or frappe.get_cached_value(
|
||||
"Navbar Settings",
|
||||
"Navbar Settings",
|
||||
"app_logo",
|
||||
)
|
||||
|
||||
if not app_logo:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue