sfcc-caching

sfcc-caching is a skill for Claude Code, Codex from taurgis/sfcc-dev-mcp. It costs 46 tokens per session (954 once invoked), scanned A, original, MIT.

A caching guide for Salesforce B2C Commerce, explaining how to store pages, application data, or responses from outside services for reuse.

In plain words
What is it for?
Use it when improving performance, reducing repeated database or external-service calls, designing cache keys and expiration times, or investigating outdated cached results.
Why use it?
It helps avoid slow repeated work and prevents common mistakes such as using the wrong cache layer, unsafe keys, or stale data assumptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when improving performance, reducing repeated database or external-service calls, designing cache keys and expiration times, or investigating outdated cached results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taurgis/sfcc-dev-mcp/sfcc-caching
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add taurgis/sfcc-dev-mcp --skill sfcc-caching
Clone the repo
git clone --depth 1 https://github.com/taurgis/sfcc-dev-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sfcc-caching

README.md
[![agentmods](https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-caching/github.svg)](https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-caching)
Your own site
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-caching"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-caching/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sfcc-caching

Your own site · 80×15
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-caching"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-caching.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00954
Opus 5 $0.00023 $0.00477
Sonnet 5 $0.00009 $0.00191
Haiku 4.5 $0.00005 $0.00095

Measured 9d ago against content hash f1fb07d86e76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sfcc-caching scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-instructions/skills/sfcc-caching/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SFCC Caching (Unified Playbook)

Caching in SFCC has multiple layers. The most common failures come from:

  • choosing the wrong cache layer
  • unsafe population patterns
  • invalidation assumptions (multi-node)
  • caching the wrong data types (heavy API objects)

Quick Checklist

[ ] Choose cache layer: page cache (HTML) vs custom cache (data) vs service response cache
[ ] Design keys with site + locale scoping where needed
[ ] Use atomic get-or-load patterns (avoid double loaders)
[ ] Cache POJOs/DTOs, not dw.* API objects
[ ] Treat cache values as immutable snapshots; re-put updated copies
[ ] Design around TTL, not cross-node invalidation
[ ] Monitor hit ratios and write failures in Business Manager

Cache Layers (Pick the Right Tool)

Layer What it caches When to use
Page cache Rendered responses / fragments High-traffic pages where output can be cached
Custom cache (CacheMgr) Application data Expensive computations, repeated DB lookups, third-party responses
Service response cache HTTP responses inside service framework Repeated calls to stable third-party APIs

Scope: request vs session vs CacheMgr

  • request.custom: per-request scratchpad
  • session.custom / session.privacy: per-user, per-session data (keep small)
  • CacheMgr: app-server local cache shared by users on the same node

Never store user-specific data in a global custom cache.

Custom Cache Mechanics (Non-Negotiable Rules)

1) Define caches in caches.json and register in cartridge package.json

  • Cache IDs must be globally unique across the cartridge path.
  • The package.json that declares "caches" must live in the cartridge root (cartridges/{{mycartridge}}/package.json), and the caches.json path is relative to that.

2) Use atomic “get-or-load”

Prefer cache.get(key, loader) (single step). Avoid:

  • if (!cache.get(key)) cache.put(key, load())

3) Cache POJOs, not API objects

Don’t cache dw.catalog.Product, dw.order.Order, etc. Map to a lightweight object with only the fields you need.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 90 lines · 46 tokens per session scan A f1fb07d86e76

Subscribe to this mod's changes

sfcc-caching is a skill published in the GitHub repository taurgis/sfcc-dev-mcp (28 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 954 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nebula-logger-purging-and-retention

Use this skill when the user wants to configure how long Nebula Logger keeps log records before deleting or archiving them. Covers retention date semantics on Logc, the LogBatchPurger batch job, LogBatchPurgeScheduler, purge action values, and how to tune retention per user, profile, or scenario.

jongpie/NebulaLogger · 79 tokens

adk-redis

Redis backends for Google's Agent Development Kit (ADK). Use this skill when the user wants to back an ADK agent with Redis: persistent sessions and long-term memory via Redis Agent Memory Server, RAG search tools over a RedisVL index (vector / hybrid / range / text / SQL), MCP toolsets for RedisVL or Agent Memory…

redis-developer/adk-redis · 92 tokens

orchardcore-ai-memory-elasticsearch

Skill for indexing CrestApps Orchard Core AI Memory with Elasticsearch. Covers memory field mappings, dense vectors, k-nearest-neighbor retrieval, default query fields, user isolation, and Elasticsearch operations. Use this skill when requests mention AI Memory Elasticsearch, AIMemoryElasticsearchIndexProfileHandler…

CrestApps/CrestApps.AgentSkills · 130 tokens

guardian-cache

Store temporary agent state and cached API results in Redis using enforced mema: namespaces and TTL controls. Use when session data or expensive intermediate results must be shared across steps or sub-agents.

1999AZZAR/project-guardian-mcp-server · 41 tokens

magento-agent-cache

Autonomously diagnose Magento 2 cache issues — FPC bypass, Redis pressure, stale blocks, and invalidation failures — and scaffold custom cache types. Produces a Cache Report with root cause and fix.

furan917/magento-ai-toolkit · 47 tokens

ecommerce-caching

Improve store performance with a layered caching strategy — CDN edge caching, Redis application cache, and smart cart-aware invalidation.

finsilabs/awesome-ecommerce-skills · 28 tokens