website fixes

This commit is contained in:
Anand Doshi 2012-12-06 20:08:36 +05:30
parent 41c0a321e5
commit ddd8bddffd
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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)