Changing the location of caching models/results of Stan

Hi,

I run pyStan model on a server. And I have a question about setting the directory where the cached model and results are saved.
I used the following command to specify the cached model on a project space. But it is still saving the cached model in its default folder. Am I writing anywhere wrong or missing anything? Thanks!
XDG_CACHE_HOME=/project/mutsigs/pythonlibs/lib/python3.8/site-packages/.cache/

Your server is running linux?

Test what appdata sees.

Also make sure that os.environ sees your path

Yeah, it is linux. Do you mean in my python script, I add print(stan.user_cache_dir() ) to check the cache_dir?

Yeah, I would start debugging there.