upon discovering that richard tyler knew of the exact location of the cave , captain rob had persuaded tyler to join his crew , and help the captain to mount a bold raid on the main port to steal the treasure cached in the houses and the fort , and then to recover the treasure from the cave .