Fix issues when cache is not configured