Change cacheEnabled logic.