Skill points. But salary is based on skill points. So there is obviously going to be a correlation between salary and the cap.
Although, I think different skills count more towards the cap than other skills (but that is just a theory and not verified).