Force metacache refresh or update meta for specific file

Hi,

Is there a way to force metadata cache refresh? Or update the metadata cache for a specific file after calling processFrontmatter?

I’ve tried to call getCache and getFileCache after calling processFrontmatter thinking it would refresh the cache, but it didn’t.

Thanks!

2 Likes

Bumping it up as I have same query.

Are you sure it’s the cache that needs updating, and not a refresh on your query?

Or put another way, how do you detect that the cache hasn’t been updated? What’s your context dur this question?

Having the same problem:
@holroy I can tell by editing a file and seeing that my plugin doesn’t update the info it fetches.

I came up with the following helper