miikey speaks the truth.
UK CWR *should* be in a state whereby it is stress-free at a rail temperature of between 23 and 27 degress C, a figure arrived at by empirical testing by BR in the 60s.
This means that at temperatures higher than this it is compression and can buckle; however only if it is allowed to, as miikey says. "Perfect" CWR track is good to >53 degrees, which is a state of affairs rarely found in the UK.
At temperatures lower than this, the CWR is in tension, leading, at low temperatures, to broken rails.
The stree-free temperature is a balance between these to extremes; adjustment switches are only provided to allow these stresses to "escape" prior to some feature not intended or capable of withstanding them. such as older S&C, jointed track, some switch diamonds, swing bridges, etc.
Jointed track is not intended nor capable of dealing with high compressive forces in the rail at all, relying on all the gaps at all the joints being correct, consistent and available (i.e. the fishplates are oiled and correctly fitted).