About DOpus.FlushConfig()

Hi. In order to do some scripting-related stuff, for now it's necessary to read from the configuration files themselves. And to make sure the latest data is being used, I use DOpus.FlushConfig(). At least from my experience, I can notice 2 things:

  • Calling that method makes Opus start saving the configuration data it keeps in memory in a synchronous way. That is, the script "waits" on that line until all the data has been written to disk.

  • It's pretty fast, just a few milliseconds.

Am I correct, or could there be cases where it doesn't work like that?

Thanks for any info.

It will always be a blocking function. Can't promise how fast it'll be - depends what needs to be saved - but those things are usually pretty quick.

1 Like