fixes in blog caching

This commit is contained in:
Anand Doshi 2012-07-13 02:16:22 +05:30
parent 53bd49d46c
commit 4cf55c5a04

View File

@ -94,6 +94,9 @@ def add_comment(args=None):
website.web_cache.clear_cache(args.get('page_name'),
args.get('comment_doctype'), args.get('comment_docname'))
# loads fresh blog into cache
get_blog_content(args.get('page_name'))
import webnotes.utils
comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])