feat(v7): stabilize route caching#13977
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
yanthomasdev
left a comment
There was a problem hiding this comment.
Great work @ArmandPhilippot, I have only one small nit
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
|
I don't know if route caching is going to make v7, just in case you are spending too much time on this PR. I'll check with Matt to see if he's going to have time to work on it this week. |
Description (required)
Updates docs to stabilize route caching. Kinda supersedes #13944
experimental-flags/route-cachingcontents toreferences/cache-provider.mdx(new),references/api-reference.mdx,guides/content-collections.mdx, andguides/caching.mdx(new)references/modules/astro-configto includememoryCache()Most of the content comes from
experimental-flags/route-caching. But I have tweaked/reworded some parts for better integration (ie. a more guide/reference style).Why a new
guides/caching.mdxpage vs a new section inguides/routing.mdx:guides/routing.mdxHappy to discuss about the new routes if we think something else might be better!
It seems there is no associated PR yet for route caching stabilization and this is still experimental on
next(https://github.com/withastro/astro/blob/6a90f94acd451dfe6d9f3bcec764c20e6fe2808e/packages/astro/src/types/public/config.ts#L2973-L3050) so we'll need to wait before merging this to v7 docs.Related issues & labels (optional)
For Astro version:
7.0. See astro PR ....