moved clear-cache functionality into Cache object