Mill liners are used in ball and rod mills to protect the mill shell from wear and are strategically designed to lift the grinding media for effective cascading and grinding action. Their design is optimized based on the specific grinding mechanism of the mill, which is determined by factors such as mill type, dimensions, rotational speed, feed size, and grinding media properties.