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)