Prepare to Use the Regenerate Cache APIs
Before you can use the Regenerate Cache APIs, you must configure a trigger, a setting, and a picklist. Then you must run two CMT Administration jobs.
-
In Custom Settings, Trigger Setup, enable the CacheAPI.CacheManagement trigger. See Enable the Cache Management Trigger.
-
In CPQ Configuration Custom Settings, set CacheAPI.RegenerateBatchCacheProcessor to true. See Setting Up Your CPQ Configuration Settings.
-
Make sure the CachedAPIChange object has its
vlocity_cmt__ChangeType__c
andvlocity_cmt__CodeType__c
picklists defined. See Picklist Value Activation. -
In CMT Administration, run the Product Hierarchy Maintenance and Clear Managed Platform Cache Jobs.
-
Use the Populate Cache APIs. If you've been following this workflow, you've already done so.
Don't use the Vlocity CMT Administration Cacheable API Jobs (batch APEX) while using the cache management APIs. Use either the batch APEX jobs or the cache management APIs, not both.