Managing InCountry cache
note
Management of InCountry Cache is supported in the legacy package only.
The InCountry Data Residency for Salesforce package provides InCountry Cache that is based on the Lightning Platform Cache. This cache provides faster performance and better reliability when caching the InCountry Data Residency package metadata and configuration settings. To show records with protected fields according to the redaction data regulation policy, you need to hide standard Salesforce tabs from the app. This can be achieved in two ways:
Enabling InCountry Cache
Load the InCountry application.
On the menu, select Settings.
Locate the InCountry Cache block and expand it.
Locate the Cache Enabled toggle and move it right.
Click Link to InCountry Partition.
On the Platform Cache Partition: InCountryCache page, click Edit.
Locate the Org Cache Allocation option group.
In the Provider Free box, enter the integer number from 1 to 3. This number regulates the cache amount in megabytes. The maximal cache amount is 3 megabytes.
Click Save.
Once you have made updates in the configuration of the package or created new records according to the existing setup, the cache will be filled in with data.
Clearing InCountry Cache
warning
Please consider that InCountry Cache is not updated in real time. This cache stores the actual configuration of the package and provides it to the package for the quick loading of the existing configuration.
After changing the package configuration (data regulation policies, protected fields, and other parameters), the cache may store inconsistent configuration that should be updated by clearing the cache, otherwise, you will use the cached out-of-date configuration within the package. We recommend that you clear InCountry Cache after changing the package configuration.
Load the InCountry application.
On the menu, select Settings.
Locate the InCountry Cache block and expand it.
Click Clear Cache.
tip
Salesforce may vary cache separators that affect the clearing of InCountry Cache. The package provides the Cache separator option where you can enter the current cache separator. To save the modified cache separator, click Save separator.
Above the Cache separator field, you can see the string value, for example, POLICIESFIELDSCACHE_B_FIELDS
.
It includes the three components {class_name}{cache_separator}{cache_key), as follows:
POLICIESFIELDSCACHE
(class_name)_B_
(cache_separator) - may varyFIELDS
(cache_key)
You need to grab the value between the class name and the cache key, this value will be a cache separator that you will need to update in the Cache separator box. If you use the incorrect cache separator, InCountry Cache will be retained and you may use the non-actual configuration of the package.