content-sdk-loader-cache-and-revalidation
Server-only loader cache (unstorage), SWR behaviour, cache keys and POST /api/revalidate.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-loader-cache-and-revalidation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Loader cache and revalidation (Angular)
Detail: AGENTS-loaders-and-di.md#loader-cache
Read first: src/server.ts, sitecore.config.ts
When
- Stale or missing content after a publish
- Tuning caching, revalidation, or the storage driver
Rules
- Angular has no framework ISR — this app caches loader results via
createLoaderCacheon top ofunstorage - One cache instance shared by
createSitecoreRevalidateMiddleware,createLoaderDataServiceMiddleware, andangularApp.handle(req, { cache, req, res }) - Configure by editing
sitecore.config.tsand passing the values in the first argument ofdefineConfig:defineConfig({ angular: { loadersCache: { enabled: true, revalidate: 300 } } }, environment).scConfig.angular.loadersCacheis the resolved read path used bysrc/server.ts— do not assign to it - Both fields default when omitted (
enabled: true,revalidate: 300); per-route overrides vialoaderResolver('page', { enabled, revalidate, tags }) - Cache keys include site, locale and personalization variant — do not drop any of them
- Editing and preview requests bypass the cache; redirects are never cached
unstorageand the cache are server-only — never import them fromsrc/app/**- In production use a driver backed by shared storage; a per-process memory map is inconsistent across workers
- Protect
POST /api/revalidatewithSITECORE_REVALIDATE_SECRET
Stop
- Stop if a change would make the cache reachable from the browser bundle or cache personalized/editing responses
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-loader-cache-and-revalidation?
Server-only loader cache (unstorage), SWR behaviour, cache keys and POST /api/revalidate.
Как установить скилл content-sdk-loader-cache-and-revalidation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-loader-cache-and-revalidation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…