webPath may differs from cachePath

Example, I have 2 ends: backend and frontend. I want to keep cache files in one place, but each end have its own subdomain and webPath to cache, which is a symlink to base cache path.