mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
website: don't waste db connection if loading page from cache
This commit is contained in:
@@ -72,6 +72,7 @@ def get_html(page_name):
|
|||||||
from_cache = True
|
from_cache = True
|
||||||
|
|
||||||
if not html:
|
if not html:
|
||||||
|
webnotes.connect()
|
||||||
html = load_into_cache(page_name)
|
html = load_into_cache(page_name)
|
||||||
from_cache = False
|
from_cache = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user