Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent big cache file for yaml. #2652

Open
comfuture opened this issue Jun 4, 2024 · 0 comments
Open

Prevent big cache file for yaml. #2652

comfuture opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@comfuture
Copy link

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 comfuture added the enhancement New feature or request label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant