How does the gradle --project-cache-dir work in mult-project and composite build project?

As per my understanding with gradle, every project has .gradle folder at project root for caching some data like checksum etc. and this location can be changed with --project-cache-dir. so it should be project specific property.

I am currently working on gradle composite build project. If I set this property, how will the gradle able to point all projects in the composite build to same location. will this cause any error?

How exactly this works in composite build and multi build projects?