B2C Custom Cache Management

•
4
•

Manages high-performance data caching for Salesforce B2C Commerce using the CacheMgr and Cache Script API.

This skill empowers developers to optimize Salesforce B2C Commerce storefront performance by implementing custom cache layers for expensive calculations, external API responses, and frequently accessed configuration data. It provides standardized patterns for defining caches in JSON files, utilizing the Script API for data retrieval and storage, and implementing best practices like the loader pattern and scoped cache keys to ensure efficient memory usage within the platform's 20MB memory constraints. By automating the boilerplate for CacheMgr integration, it helps maintain high-performing, scalable storefront code.

주요 기능

01Standardized cache definitions via caches.json and package.json configuration
024 GitHub stars
03Implementation of the 'get with Loader' pattern for automatic cache population
04Context-aware caching using site, catalog, and locale scoped keys
05Guidance on managing platform limitations like memory caps and 128KB entry sizes
06Automated templates for caching external API responses and complex business logic

사용 사례

01Caching responses from external 3rd-party pricing or availability services
02Storing results of complex product variation availability calculations
03Managing site-specific configuration data retrieved from IMPEX files or custom objects