Use XDG_CACHE_HOME for defining cache directory for torch, pip and pre-commit
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.
Edited by André Anjos