From b38e34d2035e131c61d6b348bbcd7da164cf76ca Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 24 Oct 2012 17:39:50 +0530 Subject: [PATCH] removed __SessionCache and replaced with webnotes.clear_cache --- home/doctype/company_control/company_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/doctype/company_control/company_control.py b/home/doctype/company_control/company_control.py index 0899bed050..90e69f9aba 100644 --- a/home/doctype/company_control/company_control.py +++ b/home/doctype/company_control/company_control.py @@ -73,8 +73,8 @@ class DocType: # 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):