Clear cache when doing the upgrade tests