Tim Cahill became Australia's all-time leading goalscorer only to then watch his side blow a three-goal lead to lose 4-3 to Ecuador at The Den.