Flush Cache to Disk

Immediately flushes the internal file cache to the computer's hard disk.

Options 

None.

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go Yes
FileMaker WebDirect No
FileMaker Server No
FileMaker Cloud products No
FileMaker Data API No
Custom Web Publishing No

Originated in version 

6.0 or earlier

Description 

FileMaker clients automatically flush (save) changes from their internal file cache to the computer's hard disk (or other storage) during idle time. Use this script step to force FileMaker clients to flush their internal file cache after extensive changes have been made through script steps such as Import Records or Replace Field Contents.

Example 1 

Assigns serial numbers to all records in the found set and flushes the changes to the disk.

Copy
Perform Find [Restore]
Sort Records [Restore; With dialog: On]
Go to Record/Request/Page [First]
Replace Field Contents [With dialog: Off; Products::Serial Number; Serial numbers]
Flush Cache to Disk