Method of controlling chaos in a ring cavity containing a media with cubic phase nonlinearity (Ikeda system) is considered. The proposed method is based on introduction of an additional feedback loop with parameters chosen so that the fundamental frequency components after passing through different feedback loops appear in phase, while the most unstable sidebands appear in antiphase, thus suppressing each other. In the weak dispersion limit a discrete map is derived that is a modification of the well-known Ikeda map.