Remove packages from the in-memory cache when their repository has been changed.