How do I stop vapor lock?

My car had the same issues except the part about reference to temperature. The problem I found was the short hose connecting the fuel sender tube to the fuel line. It was cracked nearly I two. I could not believe it ran for the test drive or loaded on the trailer when I bought it.
Yote