website fixes
This commit is contained in:
parent
41c0a321e5
commit
ddd8bddffd
@ -36,7 +36,7 @@ def get_blog_list(args=None):
|
||||
res['full_name'] = get_fullname(res['owner'])
|
||||
res['published'] = global_date_format(res['creation'])
|
||||
if not res['content']:
|
||||
res['content'] = website.web_cache.get_html(res['name'])
|
||||
res['content'] = website.web_cache.get_page_html(res['name'])
|
||||
res['content'] = split_blog_content(res['content'])
|
||||
res['content'] = res['content'][:1000]
|
||||
|
||||
|
@ -169,7 +169,7 @@ def clear_cache(page_name):
|
||||
if page_name:
|
||||
delete_page_cache(page_name)
|
||||
else:
|
||||
webnotes.cache().flush_keys("page:")
|
||||
webnotes.cache().delete_keys("page:")
|
||||
|
||||
def delete_page_cache(page_name):
|
||||
webnotes.cache().delete_value("page:" + page_name)
|
Loading…
x
Reference in New Issue
Block a user