From b5c3970145a86b6701a5d6637a26380d34b4628c Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 7 Dec 2012 12:54:08 +0530 Subject: [PATCH] website: home_page fix --- website/helpers/make_web_include_files.py | 2 +- website/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/helpers/make_web_include_files.py b/website/helpers/make_web_include_files.py index fc834e8c387..3bbc5636310 100644 --- a/website/helpers/make_web_include_files.py +++ b/website/helpers/make_web_include_files.py @@ -10,7 +10,7 @@ def make(): if not webnotes.conn: webnotes.connect() - home_page = website.utils.get_home_page('Guest') + home_page = website.utils.get_home_page() fname = 'js/wn-web.js' if os.path.basename(os.path.abspath('.'))!='public': diff --git a/website/utils.py b/website/utils.py index a201f43c476..7f086d86805 100644 --- a/website/utils.py +++ b/website/utils.py @@ -60,11 +60,11 @@ 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: fresh" + comments += "\nload status: cache" if not html: html = load_into_cache(page_name) - comments += "\nload status: cache" + comments += "\nload status: fresh" # insert comments html += """\n""" % webnotes.utils.cstr(comments)