Skip to content

Is it ever necessary to force Data-View to refresh it’s cache? If so... How? #2115

Answered by TheAtomAnt
TheAtomAnt asked this question in Q&A
Discussion options

You must be logged in to vote

I think I know what happened. Not 100% sure but maybe this will help someone else.

  1. I have just switched to using the Metadata Menu API - it has abilities to update the frontmatter, and no reason to reinvent that.
  2. When trying to update the frontmatter, with or without Metadata Menu API, it seems that if you want to update a bool field you MUST pass the bool value in as a string... so no false values. You must use "false". After making that one small change my code started working and even the dataview started updating correctly. I can't really imagine what in the world is causing such odd behavior with the dataview, but while debugging with Metadata Menu and their API, I learned that I mu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheAtomAnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant