fixing cache setting for swig