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

[minor] [fix] update session to db on clear cache
This commit is contained in:
Nabin Hait 2013-12-16 02:07:44 -08:00
commit d63a3ffcc5

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"