fontconfig is not respecting $XDG_CACHE_DIR variable, instead cache dir seems to be hardcoded into $HOME/.cache.
Where does the XDG Base Directory Specification mention about $XDG_CACHE_DIR? fontconfig supports $XDG_CACHE_HOME though.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/16.