change public $settings usage to config() for Cache namespace

Reference #2298