Liquid-infused surfaces can reduce friction drag in both laminar and turbulent flows. However, the heat transfer properties of such multi-phase surfaces have still not been investigated to a large extent. We use numerical simulations to study conjugate heat transfer of liquid-filled grooves. It is shown that heat transfer can increase for both laminar and turbulent liquid flows due to recirculation in the surface texture. Laminar flow simulations show that for the increase to be substantial, the thermal conductivity of the solid must be similar to the thermal conductivity of the fluids, and the recirculation in the grooves must be sufficiently strong (Péclet number larger than 1). The ratio of the surface cavity to the system height is an upper limit of the direct contribution from the recirculation. While this ratio can be significant for laminar flows in microchannels, it is limited for turbulent flows, where the system scale (e.g. channel height) usually is much larger than the texture height. However, heat transfer enhancement of the order of
$10\,\%$
is observed (with a net drag reduction) in a turbulent channel flow at a friction Reynolds number
${{Re}}_\tau \approx 180$
. It is shown that the turbulent convection in the bulk can be enhanced indirectly from the recirculation in the grooves.