website: home_page fix
diff --git a/website/helpers/make_web_include_files.py b/website/helpers/make_web_include_files.py
index fc834e8..3bbc563 100644
--- a/website/helpers/make_web_include_files.py
+++ b/website/helpers/make_web_include_files.py
@@ -10,7 +10,7 @@
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 a201f43..7f086d8 100644
--- a/website/utils.py
+++ b/website/utils.py
@@ -60,11 +60,11 @@
# 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<!-- %s -->""" % webnotes.utils.cstr(comments)