Clear all the caches

Update to https://github.com/composer/composer/pull/3034 as per the comments to clear all the caches.