Cooling food before putting it in the fridge has little to do with the specific dish you store but with the other contents in the refrigerator. If you put a hot meal in the fridge, it will raise the refrigerator's temperature and may affect other perishable foods. So it is good to cool the dish before storing it.