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

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