Mark 5:43 ASV

Why is it that sometimes Jesus encouraged people to tell others about their healing and other times he told them to stay quiet?