You are here:
Workflow for Setting Up Caching for State Models
Using the Salesforce Platform Cache to store frequently accessed, infrequently updated data saves round trips to the database and improves performance.
In Spring '20 and later releases, you can set up caching for State Models. The following data is cached for all State Models:
-
Vlocity State Model Versions
-
Vlocity States
-
Vlocity State Transitions
-
Vlocity State Transition Rules
-
Vlocity Actions
To be stored in the Platform Cache, data in a Vlocity State Model Version must not exceed 1MB.
To set up caching for State Models:
- Specify the State Model Cache Partition Name.
- Create the State Model Cache Partition and Allocate Space.
- Specify the State Model Cache Partition Name
The StateModelRulesCachePartition setting determines the name of the cache partition for State Model data. VlocityMetaData is typically used, but you can specify a different name. - Create the State Model Cache Partition and Allocate Space
After specifying the State Model cache partition name, the next task is to create and allocate space in this partition.

