commitdatabase

[commitdatabase db=mydata.db]
Putting [commitdatabase db=mydata.db] in a template causes the specified database file to be written but not closed, it will remain in RAM. This is only needed for special cases where it is absolutely certain that a database has to been written to disk.