[assembly] Get caching mode from cache not from property directly

5 jobs for !3208 with feature/caching-mode-from-cache
latest merge request