website: don't waste db connection if loading page from cache

This commit is contained in:
Rushabh Mehta 2013-03-13 16:34:43 +05:30
parent d84f299c40
commit a1041d5128

View File

@ -72,6 +72,7 @@ def get_html(page_name):
from_cache = True
if not html:
webnotes.connect()
html = load_into_cache(page_name)
from_cache = False