A charter school in Woodbury is switching to online classes due to increased influenza cases affecting the student body.