website: don't waste db connection if loading page from cache
This commit is contained in:
parent
d84f299c40
commit
a1041d5128
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user