Update demo to flush write cache