From 7c24a42076e7978ac74901ecb1094555079e5b07 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 7 Dec 2012 13:29:32 +0530 Subject: [PATCH] website: home_page fix --- website/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/utils.py b/website/utils.py index 37cb5c90174..991a4860038 100644 --- a/website/utils.py +++ b/website/utils.py @@ -60,9 +60,10 @@ def get_html(page_name): # load from cache, if auto cache clear is falsy if not (hasattr(conf, 'auto_cache_clear') and conf.auto_cache_clear or 0): html = webnotes.cache().get_value("page:" + page_name) - comments += "\nload status: cache" - if not html: + if html: + comments += "\nload status: cache" + else: html = load_into_cache(page_name) comments += "\nload status: fresh"