Clear cache when retrying tests to avoid any errors related to stale cache data.