How To Prevent Coriander Flower?


My coriander never lasts more than 3-4 months. I’ve read it doesn’t like change in temperatures and I live in Melbourne so it probably doesn’t like the four seasons in one day we get here! Other than moving to a more stable climate or putting it inside, is there a way to prevent it going into flower so early?