pass source attribute to getCachePath() to fix cache presence not being detected correctly