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"
|
"writers": "website.helpers.blog.get_writers_args"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
no_cache = "message"
|
||||||
|
|
||||||
def render(page_name):
|
def render(page_name):
|
||||||
"""render html page"""
|
"""render html page"""
|
||||||
try:
|
try:
|
||||||
@ -68,6 +70,7 @@ def get_html(page_name):
|
|||||||
|
|
||||||
# load from cache, if auto cache clear is falsy
|
# load from cache, if auto cache clear is falsy
|
||||||
if not (hasattr(conf, 'auto_cache_clear') and conf.auto_cache_clear or 0):
|
if not (hasattr(conf, 'auto_cache_clear') and conf.auto_cache_clear or 0):
|
||||||
|
if not page_name in no_cache:
|
||||||
html = webnotes.cache().get_value("page:" + page_name)
|
html = webnotes.cache().get_value("page:" + page_name)
|
||||||
from_cache = True
|
from_cache = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user