change way to set cache config