commit | a1041d5128d3c4bbc73e4930ee01b2fa5ff59330 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Wed Mar 13 16:34:43 2013 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Wed Mar 13 16:34:43 2013 +0530 |
tree | 74ee415148efbf5a1abe5eb191d1c8aa9a3c279a | |
parent | d84f299c40e84df5208270024084f6e568368b53 [diff] |
website: don't waste db connection if loading page from cache
diff --git a/website/utils.py b/website/utils.py index b38d2b3..e68a4f8 100644 --- a/website/utils.py +++ b/website/utils.py
@@ -72,6 +72,7 @@ from_cache = True if not html: + webnotes.connect() html = load_into_cache(page_name) from_cache = False