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 00000000000..fee33dccbb7 --- /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 190996d6a7c..d1df7de7368 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