This MR just replaces the various cache variables by a central XDG_CACHE_HOME, that is respected (at least) by pip, pre-commit and torch. Cache paths were updated accordingly preserving the current behaviour.
XDG_CACHE_HOME