Sets caching flag to state operator and contractions.
References syten::T3N::DMRG::Contractions::cache_flag.