Raman measurements in ${\mathrm{YBa}}_{2}{\mathrm{Cu}}_{3}{\mathrm{O}}_{x}$ $(x=$6.72\char21{}6.82) high-${T}_{c}$ superconductors reveal intense phonon scattering due to an electronic resonance localized near oxygen vacancies on the CuO chains. Below room temperature the resonance can be photobleached in a manner similar to reported persistent photoinduced superconductivity effects, indicating photon-assisted oxygen ordering or electron vacancy capture. By comparing Raman and x-ray diffraction data we establish a correlation between the stability of the photoinduced state and the oxygen-ordering kinetics in the CuO chains.