mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fixes in blog caching
This commit is contained in:
@@ -94,6 +94,9 @@ def add_comment(args=None):
|
|||||||
website.web_cache.clear_cache(args.get('page_name'),
|
website.web_cache.clear_cache(args.get('page_name'),
|
||||||
args.get('comment_doctype'), args.get('comment_docname'))
|
args.get('comment_doctype'), args.get('comment_docname'))
|
||||||
|
|
||||||
|
# loads fresh blog into cache
|
||||||
|
get_blog_content(args.get('page_name'))
|
||||||
|
|
||||||
import webnotes.utils
|
import webnotes.utils
|
||||||
|
|
||||||
comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])
|
comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])
|
||||||
|
|||||||
Reference in New Issue
Block a user