Deco Cms Layout Caching

Cache layout sections (Header, Footer, Theme) across @decocms/blocks and @decocms/tanstack to avoid redundant CMS resolution and API calls on every navigation. Covers resolvedLayoutCache in resolve.ts, layoutInflight dedup in sectionLoaders.ts, pageInflight dedup in cmsRoute.ts, registerLayoutSections, staleTime in dev mode, and diagnosing repeated intelligent-search calls. Use when page loads trigger duplicate VTEX API calls for Header shelves, variant changes re-resolve the entire CMS page, or layout sections cause N+1 API patterns.

decocms e69b9a9 13.3 KB Updated

File contents

decocms/blocks/tree/main/.cursor/skills/deco-cms-layout-caching commit e69b9a9f3a

Frequently asked questions

npx skillmds@latest add decocms/deco-cms-layout-caching