Project-cache-dir is not picked by new project workspace

I have a project where i store the cached data in a centralized location using “project-cache-dir” argument.

Every time my project work space changes from one machine to another machine. I want to use the cached metadata which is centralized ,top perform incremental build based in cached data. How can i achieve that?

Currently when ever i change the project work space and pass the same caching location , complete build is happening even though one file is changed in Java.