resolve undefined method `update` error when dealing with nested cache blocks