Electron dephasing is a major gain-inhibiting effect in plasma-based accelerators. A novel method is proposed to overcome dephasing, in which the modulation of a modest [~O(10 kG)], axial, uniform magnetic field in the acceleration channel leads to densification of the plasma through magnetic compression, enabling direct, time-resolved control of the plasma wave properties. The methodology is b...