expose ModelCache on global; session now emits willFlush event