Cavity quantum electrodynamics (CQED) has played a central role in demonstrating the fundamental principles of the quantum world, and in particular those of atom-light interactions. Developing fast, dynamical and non-mechanical control over a CQED system is particularly desirable for controlling atomic dynamics and building future quantum networks at high speed. However conventional mirrors do not allow for such flexible and fast controls over their coupling to intracavity atoms mediated by photons. Here we theoretically investigate a novel all-optical CQED system composed of a binary Bose-Einstein condensate (BEC) sandwiched by two atomic ensembles. The highly tunable atomic dispersion of the CQED system enables the medium to act as a versatile, all-optically controlled atomic mirror that can be employed to manipulate the vacuum-induced diffraction of matter-wave superradiance. Our study illustrates a innovative all-optical element of atomtroics and sheds new light on controlling light-matter interactions.