Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/home/doctype/company_control/company_control.py b/home/doctype/company_control/company_control.py
index 0899bed..90e69f9 100644
--- a/home/doctype/company_control/company_control.py
+++ b/home/doctype/company_control/company_control.py
@@ -73,8 +73,8 @@
 		
 		# Update Membership Type at Gateway
 		from webnotes.utils import cint
-
-		sql("delete from __SessionCache where user=%s", cstr(arg['usr']))
+		
+		webnotes.clear_cache(cstr(arg['usr']))
 
 	# Save profile
 	def save_profile(self,arg):