Skip to main content

Platform Cache

To improve performance, Salesforce's Platform Cache temporarily stores commonly accessed data, such as translations, picklist values, and file renditions, for applications. Platform Cache entries have a 48 hour time to live (TTL). You can use Platform Cache partitions to distribute storage space across applications, including Komodo Publications Planning.

Komodo Publications Planning has four platform cache partitions:

  1. mcmDefault - caches general items like picklist values and layouts.

  2. mcmSearch - powers Komodo Publications Planning's content search API.

  3. metadataAPI - caches Task metadata that is used to build a Task layout.

  4. ppDefault - caches the Pubs Global Setting (mvn__PP_Global_Setting__mdt) custom metadata type. This includes any data stored in the Pubs Global Setting custom metadata type by other Komodo Publications Planning entities, such as the following:

For more information, visit Salesforce's Cache Lightning Platform Data and Platform Cache Limits documentation.

metadataAPI partition

The metadataAPI partition must have at least 1MB of organization storage capacity allocated to it and must be updated every hour. To update the partition every hour, execute this code in the Anonymous Apex:

System.schedule('CM_Cache_Task_Metadata_Job', '0 0 * * * ?', new mvn.CM_CacheSObjectMetadataSchedulable('Task'));

In addition to updating the cache every hour, Komodo Health recommends manually clearing the metadataAPI partition when any of these conditions are met:

  • Task or Activity metadata is updated (e.g. a new field is created/updated, a Task record type is updated, and/or picklist values are updated).

  • Any global value set referenced by the Task/Activity is updated.

  • The Komodo Publications Planning product is upgraded.

Clear cache partition

To clear a partition manually:

  1. In the Quick Find box in Setup, search for and select Platform Cache.

  2. Click the Name of the Platform Cache Partition that you want to clear.

  3. Click Clear Cache.