B2C Commerce Custom Caching

•
22
•

Implements application-level caching in Salesforce B2C Commerce using CacheMgr API and JSON-based configurations to optimize storefront performance.

This skill provides specialized guidance for implementing custom caching within Salesforce B2C Commerce (formerly Demandware). It streamlines the process of defining cache regions in JSON, managing entry lifecycles via the CacheMgr Script API, and implementing high-performance patterns like the 'get-with-loader' approach. By mastering site-scoped keys and understanding platform-specific limitations like the 20MB memory cap and 128KB entry limit, developers can significantly reduce server load and improve response times for expensive calculations and external API calls.

주요 기능

01External API response caching for service optimization
02JSON-based cache region definition and configuration
03Guidance on platform memory limits and object serialization
04Implementation of the efficient get-with-loader pattern
0522 GitHub stars
06Contextual scoping for site, catalog, and locale-specific data

사용 사례

01Caching complex sale price calculations across large product variations
02Storing real-time external service data like in-store availability
03Optimizing site-wide configuration settings retrieved from static files