---
schema_version: "1"
id: a7afcde60b90f48b0a9c1f6a694bac5a48f8e0c03dcec51f9e528a283be37bb9
title: Configuring CPQ Platform Cache
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_configuring_cpq_platform_cache.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_configuring_cpq_platform_cache.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 46fe3d8cd6f2b8b662930e63b88d5a09c1596ced53c6369d0e6ae6cf7a0c853b
description: An org cache is necessary so you can use CPQ. Your org should have a platform cache named CPQPartition. If the CPQPartition does not exist, create a default partition and name it CPQPartition.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Configuring CPQ Platform Cache

An org cache is necessary so you can use CPQ. Your org should have a platform cache named CPQPartition. If the CPQPartition does not exist, create a default partition and name it CPQPartition.

You are allocated a minimum of 10 MB cache space to distribute on your org. Allocating a value of 1 MB to each partition allows you to use all of the features of CME.

After applying Salesforce Industries Communications, Media, and Energy package upgrades, the vlocity\_cmt cache partitions' cache usage resets to zero. Allocate adequate space for the vlocity\_cmt cache partition, CPQPartition, after the upgrade.

Using the cache improves performance and response time for some operations, especially in large, deep hierarchical product bundles.

CME uses the platform cache for the following items:

- Caching the complete hierarchy for product bundles in the shared catalog.
    
    When you run the [Refresh Platform Cache (Full)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_full.htm&release=264.0.0&type=5 "This job copies product hierarchy data to the platform cache and rebuilds the product attribute cache.") job without selecting any price list filters on the Vlocity CMT Administration tab, CME copies the shared catalog's complete hierarchy, including the details of all product child items, and caches that information in the org level cache layer. If you don't run this job, CME caches the hierarchy at run time when a product is used for the first time. This job also updates stored filterable attributes.
    
    When you run the Refresh Platform Cache (Full) job after selecting one or more price list filters on the Vlocity CMT Administration tab, CME copies the shared catalog's hierarchy data pertaining to the selected price lists. The data includes details of all product child items.
    
    When you add or modify any product bundle or product child item, you must run the [Product Hierarchy Maintenance](https://help.salesforce.com/s/articleView?id=ind.comms_product_hierarchy_maintenance.htm&release=264.0.0&type=5 "This job builds a streamlined version of the product hierarchies in the Data Store sObjects, enabling the (formerly ) and Refresh Platform Cache (Incremental) jobs to use the hierarchy data.") job to create a flat data store of the complete product hierarchy.
    
    Then run Refresh Platform Cache (Full) to copy the hierarchy to the platform cache and invalidate the older cache values. You can also run the [Refresh Platform Cache (Incremental)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_incremental.htm&release=264.0.0&type=5 "The Refresh Platform Cache (Incremental) job updates the platform cache with changes in the product hierarchy without deleting existing data. Run the Product Hierarchy Maintenance job before you start the Refresh Platform Cache (Incremental) to ensure that changes to product bundles are properly reflected in your implementation.") job to copy the changed hierarchy data to the platform cache. The incremental job doesn't update any unmodified data in the platform cache.
- Caching the complete hierarchy for all products in a particular price book.
    
    When you click **Refresh Pricebook** on the Price Book record detail page, CME calculates the complete hierarchy, including the details of all product child items, and caches that information in the org level cache layer. If you don't click **Refresh Pricebook**, CME caches the hierarchy at run time when a product is used for the first time. Refreshing the price book also updates stored filterable attributes. If the **Refresh Pricebook** button is not visible, you must expose it. See [Expose the Refresh Pricebook Button](https://help.salesforce.com/s/articleView?id=ind.comms_expose_the_refresh_pricebook_button.htm&language=en_US).
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)
    
    Note
    
    When you add or modify any promotion, product, or product child item, refresh the price book to invalidate the older cache values and cache the updated values. For more information, see [Refresh the Price Book](https://help.salesforce.com/s/articleView?id=ind.comms_refreshing_the_price_book_in_winter__18_and_later.htm&release=264.0.0&type=5 "Refresh your price book depending on which release you are using.").
- Caching product IDs to add by default when the product is selected.
    
    CME caches the product IDs for all of the products with a quantity greater than zero in a bundle. This applies to each root product available.
- Caching the complete map with the key and values as the product wrapper for an entire bundle.
    
    The map contains the complete product hierarchy with the bundle root ID as the key. CME generates a unique key value mapping all products wrapped in a bundle using the crypto class by passing the product hierarchy path as an argument. There is one map cached for each bundle in an entire price book.
- Caching a list of all product and promotion IDs.
    
    CME caches a complete list of all product IDs in a particular bundle. Instead of iterating over the product bundles map, uses this list directly whenever a process requires a complete list of product IDs in a bundle. Use this when merging product child items across line items.

In addition, ​Salesforce Industries Communications, Media, and Energy releases from Summer '17 to Summer '19 use the session cache for context rules. The cache allocation depends on the number of context dimensions used and varies from org to org.

To set the cache:

1. From Setup, in the **Quick Find** box, enter Platform.
2. Click **Platform Cache**.
    
    On the **Platform Cache Partition** page, if the CPQPartition appears, go to step 3.
    
    If the CPQ Partition does not appear, go to [Create a Platform Cache Partition](https://help.salesforce.com/s/articleView?id=ind.comms_creating_a_platform_cache_partition.htm&release=264.0.0&type=5 "Your managed package comes with a platform cache partition and you can create a new one if needed.").
    
    ![The Platform Cache Partition page lists partitions named DefaultCachePartition and CPQPartition](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/comms_media_energy_managed/images/platform_cache.png)
3. Next to CPQPartition, click **Edit**.
4. In the **Session Cache Allocation** list, in the **Organization** box enter a number between one and five. One is recommended.
5. In the **Org Cache Allocation** list, in the **Organization** box, enter a number between one and five. One is recommended.
6. Click **Save**.

- **[Creating a Platform Cache Partition](https://help.salesforce.com/s/articleView?id=ind.comms_creating_a_platform_cache_partition.htm&release=264.0.0&type=5)**  
    Your managed package comes with a platform cache partition and you can create a new one if needed.
- **[Enable the CPQ Cache](https://help.salesforce.com/s/articleView?id=ind.comms_enable_the_cpq_cache.htm&release=264.0.0&type=5)**  
    The CPQ cache comes enabled as part of the managed package. However, if you need to enable the CPQ cache, you first create the CPQ cache partition.
- **[Enable Platform Cache for Calculation Procedures and Matrices](https://help.salesforce.com/s/articleView?id=ind.comms_enable_platform_cache_for_calculation_procedures_and_matrices.htm&release=264.0.0&type=5)**  
    You can enable the platform cache so you can use
- **[Refresh the Price Book](https://help.salesforce.com/s/articleView?id=ind.comms_refreshing_the_price_book_in_winter__18_and_later.htm&release=264.0.0&type=5)**  
    Refresh your price book depending on which release you are using.