Cycling between growth and production phases increases cyanobacteria bioproduction of lactate.