Added cache reset functionality