clean cache at upgrade