website: home_page fix
This commit is contained in:
parent
a494b88ad8
commit
b5c3970145
@ -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':
|
||||
|
@ -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<!-- %s -->""" % webnotes.utils.cstr(comments)
|
||||
|
Loading…
x
Reference in New Issue
Block a user