Also, I think `os.getenv('XDG_CACHE_HOME') or '~/.cache'` is better because user can do `export XDG_CACHE_HOME=` to reset their setting.