website: added no_cache to message page
diff --git a/website/utils.py b/website/utils.py
index e68a4f8..c7fe2f6 100644
--- a/website/utils.py
+++ b/website/utils.py
@@ -46,6 +46,8 @@
"writers": "website.helpers.blog.get_writers_args"
}
+no_cache = "message"
+
def render(page_name):
"""render html page"""
try:
@@ -68,8 +70,9 @@
# 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()