throws exception when set cache return false