Created attachment 594445 [details] [diff] [review] Patch v1. In 2007, bug 375778 added the flag MOVEFILE_WRITE_THROUGH. This flag wasn't needed by the description of the problem in that bug though. This flag causes the cache manager to flush the data to disk before returning. There is no benefit as far as consistency of the file data with subsequent calls though and we shouldn't do it from our file API because it incurs a cost of ~2ms.