composer/composer — pull request #1326 by Seldaek (2012-11-14 16:51:21+00:00)
Title: Rename cache dirs to consolidate them by purpose

- Move git/hg stuff into `$cache-dir/vcs` (those are hard requirements, if the cache is not writable the git/hg drivers are unusable)
- Move svn/composer/github stuff into `$cache-dir/repo` (those are real caches, things should run fine but slower if they are not writable)
- Move files (zip) cache into `$cache-dir/files` (this is also a real cache)

Additionally, it splits things off into a new cache-dir option instead of re-using home, so that it is possible to configure a common cache dir for multiple users of one machine. On windows the cache dir is moved out of the Roaming dir so that it should work better for people on windows domains. On unix the cache dir is just inside the composer home dir by default (~/.composer/cache).

It also moves existing dirs to the new locations to avoid leaving crap behind.

TODO: docs