Best way to flush engine after rocker arm failure?

I lost cams in two engines a while ago. While the motor was partially down for repair, I placed small magnets in the motor, in the valley and in the head, in areas where the oil will flow by but not restrict the flow. Also large magnets around the oil filter. Both motors are still running strong.