- system-cache-directoryprocedure
Returns the location of the directory for caches. This obeys the XDG specification, so when the XDG_CACHE_HOME environment variable is set, its value is used. When it's not set, it will default to $HOME/.cache on UNIX and $LOCALAPPDATA or $APPDATA on Windows.