Small changes in updating cache with logs