From 881f1542752f96701cfb5fcffc158bb5bd71e6e0 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 21 May 2012 13:13:10 +0530 Subject: [PATCH] change session cache storage as json --- erpnext/patches/may_2012/clear_session_cache.py | 3 +++ erpnext/patches/patch_list.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 erpnext/patches/may_2012/clear_session_cache.py diff --git a/erpnext/patches/may_2012/clear_session_cache.py b/erpnext/patches/may_2012/clear_session_cache.py new file mode 100644 index 0000000000..fee33dccbb --- /dev/null +++ b/erpnext/patches/may_2012/clear_session_cache.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("delete from __SessionCache") \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index 190996d6a7..d1df7de736 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -367,5 +367,10 @@ patch_list = [ 'patch_file': 'customize_form_cleanup', 'description': 'cleanup customize form records' }, + { + 'patch_module': 'patches.may_2012', + 'patch_file': 'clear_session_cache', + 'description': 'clears session cache as shifting to json format' + }, ] \ No newline at end of file