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