Two “gardeners” have been jailed for almost four years for cultivating cannabis worth up to £3.6 million in a town centre.