convert cache setting to option