[cache] fix typo that meant :data_size was being ignored