content icon indicating copy to clipboard operation
content copied to clipboard

Prevent big cache file for yaml.

Open comfuture opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe

When I tried to serve hundreds of yaml files in a static build using nuxt content, I found that it created a very big .output/public/cache.XXXXX.json file.

Describe the solution you'd like

Unlike a markdown file, where only the frontmatter is indexed, having all yaml fields cached and growing to several megabytes is not the desired effect. It should be able to control which fields are included (or excluded) in the cache.

Describe alternatives you've considered

I think there should be an option to specify fields that you want to index (separate from search).

Additional context

image

comfuture avatar Jun 04 '24 09:06 comfuture