#193366 by Anthony Hersey: Move various rebuild functions to module page submission rather than viewing for vastly increased performance.