fixes in web cache
diff --git a/erpnext/website/web_cache.py b/erpnext/website/web_cache.py
index 163a948..f83e562 100644
--- a/erpnext/website/web_cache.py
+++ b/erpnext/website/web_cache.py
@@ -75,6 +75,7 @@
 	
 	# save html in web cache
 	webnotes.conn.begin()
+	clear_web_cache(doc_type, doc_name, page_name)
 	webnotes.conn.set_value('Web Cache', page_name, 'html', html)
 	webnotes.conn.commit()