mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
website: home_page fix
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user