-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
feat(content): support useCache
option
#772
Conversation
It's in a draft, because:
But I hope it shows the general idea. I hope you can look at it and say is it something you want to have in the product? |
Hi @kwiatkk1 thanks for PR! I think it would be really good idea to use hard-cache to reduce development startup time. I would suggest moving logic |
8bbc5a8
to
df04f3a
Compare
Hi @pi0, I made some changes:
This feature doesn't apply to developer mode or the full static generate -- production build only -- I have no idea how to make it work with content reloading :/ |
df04f3a
to
612efc7
Compare
useCache
option
Your PR has been merged as Nuxt Content v1.15.0! |
Types of changes
Description
When you have a large number of content files (100+), app startup slows down a lot. It hurts in a development mode (see #694 and #767), but also when you deploy a built app onto a production server.
My proposal is to:
server
: to serialize content's db into a filedev
mode: do not walk through content's dir and parse found files, but to load content from a file generated during buildChecklist: