change session cache storage as json
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 0000000..fee33dc
--- /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 190996d..d1df7de 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -367,5 +367,10 @@
'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