Merge pull request #361 from pdvyas/hotfix-session-lastupdate
[minor] [fix] update session to db on clear cache
This commit is contained in:
commit
d63a3ffcc5
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue