Browse Source

Merge pull request #361 from pdvyas/hotfix-session-lastupdate

[minor] [fix] update session to db on clear cache
version-14
Nabin Hait 11 years ago
parent
commit
d63a3ffcc5
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()
def clear(user=None):
webnotes.local.session_obj.update(force=True)
webnotes.local.conn.commit()
clear_cache(webnotes.session.user)
webnotes.response['message'] = "Cache Cleared"



Loading…
Cancel
Save