website fixes
diff --git a/website/blog.py b/website/blog.py
index f422c93..fe3cbbd 100644
--- a/website/blog.py
+++ b/website/blog.py
@@ -36,7 +36,7 @@
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]
diff --git a/website/web_cache.py b/website/web_cache.py
index 76d773f..3b707f9 100644
--- a/website/web_cache.py
+++ b/website/web_cache.py
@@ -169,7 +169,7 @@
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)
\ No newline at end of file