Browse Source

[minor] [fix] update session to db on clear cache

version-14
Pratik Vyas 11 years ago
parent
commit
0b95e8e685
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      webnotes/sessions.py

+ 1
- 0
webnotes/sessions.py View File

@@ -19,6 +19,7 @@ import webnotes.plugins
@webnotes.whitelist() @webnotes.whitelist()
def clear(user=None): def clear(user=None):
webnotes.local.session_obj.update(force=True) webnotes.local.session_obj.update(force=True)
webnotes.local.conn.commit()
clear_cache(webnotes.session.user) clear_cache(webnotes.session.user)
webnotes.response['message'] = "Cache Cleared" webnotes.response['message'] = "Cache Cleared"




Loading…
Cancel
Save