---
schema_version: "1"
id: 99ba7da70c3cb941f218f56101c66231b469f49621e7ec7e8e61e27ff3789321
title: Prepare to Use the Regenerate Cache APIs
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-prepare-to-use-the-regenerate-cache-apis.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-prepare-to-use-the-regenerate-cache-apis.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f1ba40f5815a5f5ec3510a1b4979f2e41ab94431291cf1084d8e290cede92cce
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# 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.

1.  In Custom Settings, Trigger Setup, enable the CacheAPI.CacheManagement trigger. See [Enable the Cache Management Trigger](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-enable-the-cache-management-trigger.md).

2.  In CPQ Configuration Custom Settings, set CacheAPI.RegenerateBatchCacheProcessor to true. See [Setting Up Your CPQ Configuration Settings](https://help.salesforce.com/s/articleView?id=ind.comms_setting_up_your_cpq_configuration_settings.htm).

3.  Make sure the CachedAPIChange object has its `vlocity_cmt__ChangeType__c` and `vlocity_cmt__CodeType__c` picklists defined. See [Picklist Value Activation](https://help.salesforce.com/s/articleView?id=ind.comms_picklist_value_activation.htm).

4.  In CMT Administration, run the [Product Hierarchy Maintenance](https://help.salesforce.com/s/articleView?id=ind.comms_product_hierarchy_maintenance.htm) and [Clear Managed Platform Cache Jobs](https://help.salesforce.com/s/articleView?id=ind.comms_clear_managed_platform_cache.htm).

5.  Use the [Populate Cache APIs](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-populate-cache-apis.md). 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.

[Run the RegenerateCacheOrchestratorApplication Class](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-run-the-regeneratecacheorchestratorapplication-class.md)
