Is it ever necessary to force Data-View to refresh it’s cache? If so... How? #2115
-
Just a quick note: I have tried "Drop all Cached File Metadata" and "Force Refresh All views and Blocks" they did not solve this issue. Hey everyone, just looking for some suggestions on what to try next. Dataview doesn't always see the changes when I navigate away and then back to the page with the dataview! I can't yet find a pattern but somethings I notice..
I'm looking for more ideas and things I can try. Any magic buttons I can call like DV.UpdateIndexForPage(path) or something like that, which I could call after app.vault.modify(file, newFileContents); Quick Update: I just added "Metadata Menu" to my vault. I can use that tool from the page with the dataview to edit the metadata of the page the view is displaying, then manually refresh the view, and it works just fine. That leads me to believe that I am not triggering something properly when I manually make changes to the metadata of an alternate page - which "Metadata Menu" appears to do correctly. I will explore their codebase to see if I can determine what they are doing to properly edit the metadata in a way that allows dataview to see those changes. I'll report back if I find anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I know what happened. Not 100% sure but maybe this will help someone else.
Although I think it'd be neat to better understand what was going on with the dataview, I'm putting this issue down and I have my code working. Thank you to the Metadata Menu folks for adding an API to their plugin! Thank you for the folks working on DataView for their awesome plugin for Obsidian. |
Beta Was this translation helpful? Give feedback.
I think I know what happened. Not 100% sure but maybe this will help someone else.