From 7a941869ab2ddc4273ce31a0d1144a5f52fd55b8 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 7 Oct 2011 12:30:48 +0530 Subject: [PATCH] clear cache forcefully --- erpnext/patches/patch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/patch.py b/erpnext/patches/patch.py index aebe6e998bf..72d15525f71 100644 --- a/erpnext/patches/patch.py +++ b/erpnext/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 379 +last_patch = 380 #------------------------------------------- @@ -434,3 +434,6 @@ def execute(patch_no): elif patch_no == 379: if sql("select count(name) from `tabDocField` where label = 'Get Specification Details' and parent = 'QA Inspection Report' and fieldtype = 'Button'")[0][0] > 1: sql("delete from `tabDocField` where label = 'Get Specification Details' and parent = 'QA Inspection Report' and fieldtype = 'Button' limit 1") + elif patch_no == 380: + from webnotes.session_cache import clear_cache + clear_cache(webnotes.session['user'])