Added cache clearing method