fixes in blog cache logic
diff --git a/erpnext/website/web_cache.py b/erpnext/website/web_cache.py
index 21ec6a8..01c8e2d 100644
--- a/erpnext/website/web_cache.py
+++ b/erpnext/website/web_cache.py
@@ -219,7 +219,7 @@
 	import webnotes
 	webnotes.conn.sql("""delete from `tabWeb Cache` where name=%s""", page_name)
 
-def refresh_cache(build=False):
+def refresh_cache(build=None):
 	"""delete and re-create web cache entries"""
 	import webnotes
 	
@@ -239,7 +239,7 @@
 		for result in webnotes.conn.sql(query_map[dt], as_dict=1):
 			create_cache(result['page_name'], dt, result['name'])
 			clear_cache(result['page_name'], dt, result['name'])
-			if build: load_into_cache(result['page_name'])
+			if build and dt in build: load_into_cache(result['page_name'])
 			
 	for page_name in get_predefined_pages():
 		create_cache(page_name, None, None)