Is there a way to trigger a metadata cache update manually?

Use case

I’m the developer of day-planner, which has a drag-n-drop feature. Once the user has edited a task, they’ll have to wait for a second or two before they can start a new edit, because Obsidian’s metadata cache doesn’t update right away when the file changes. If the user starts the next edit too quickly, once the metadata updates, the user loses their edit state.

I’d like to trigger the update manually, so that the user is able to start the next edit immediately.

1 Like

Nevermind. It seems that the update is triggered immediately on vault.modify(). I just used a sneaky timeout in my code that created a delay :laughing: