website: added no_cache to message page
This commit is contained in:
parent
a1041d5128
commit
5128b664a7
@ -46,6 +46,8 @@ page_settings_map = {
|
||||
"writers": "website.helpers.blog.get_writers_args"
|
||||
}
|
||||
|
||||
no_cache = "message"
|
||||
|
||||
def render(page_name):
|
||||
"""render html page"""
|
||||
try:
|
||||
@ -68,8 +70,9 @@ 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)
|
||||
from_cache = True
|
||||
if not page_name in no_cache:
|
||||
html = webnotes.cache().get_value("page:" + page_name)
|
||||
from_cache = True
|
||||
|
||||
if not html:
|
||||
webnotes.connect()
|
||||
|
Loading…
x
Reference in New Issue
Block a user