Force save or refresh of note data

I’m mainly trying to workaround several bugs or WAD in Templater.

I would like to force either:

  • a “save” (which then allows me to read the content of the note via await app.vault.read(file):wink:
  • a refresh of the cache (which would then hopefully allow templater to pick up the frontmatter)

The reason is that neither filename nor frontmatter can be retrieved by any means from the current note as long as it isn’t “saved” as it seems.
I have a template including a template. And in the second template, I can use neither frontmatter, title nor variables.