InCountry logo
mobile-nav
Search
  • Products
    • Products
      • InCountry for Salesforce
      • Data Residency-as-a-Service
      • Alibaba Cloud InCountry Service
      • Compliance and security
    • Gateways
      • Email
      • Payment Vault
      • Web Forms
      • HTML
    • Developers
      • REST API
      • SDK
  • Solutions
    • Automotive
    • Energy
    • Financial services
    • Healthcare
    • Retail
    • Technology
    • Latest success story
      • IBM Consulting
  • Integrations
    • Cegid
    • Intertrust
    • MuleSoft
    • PayPal
    • Salesforce
    • ServiceNow
    • Stripe
    • Veeva Systems
    • Yandex
  • Resources
    • Country compliance
    • Documentation
    • Library
    • Partners
    • Pricing
  • About
    • News and Blog
    • Careers
    • Contact Us
    • FAQ
    • Leadership
  • Login
  • Schedule a Demo

›Administrator's guide

Home
  • InCountry Platform
Portal
  • Getting started
  • Documentation
    • Dashboard
    • Managing environments
    • Managing SDK credentials and services
    • Managing Border configuration
    • Managing payment vaults
    • Managing email gateways
    • Managing resident functions
    • Managing file imports
    • Managing profile and organization
    • Managing users
    • Managing encryption keys
  • Release notes
Border
  • Documentation
  • Release notes
REST API
  • Documentation
  • How to test CRUD requests through REST API
  • Release notes
Resident Functions
  • Documentation
Salesforce
  • About
  • Overview
  • Quick start guide for three-model package
  • Quick start guide for legacy package
  • Administrator's guide
    • Managing the package
    • Managing permissions
    • Managing OAuth2 authentication and authorization
    • Managing certificates
    • Registering CSP Trusted Sites
    • Managing InCountry Endpoints
    • Managing REST endpoints
    • Managing InCountry flags
    • Loading the application
    • Managing data regulation policies
    • Managing protected fields
    • Hashing the UserName field
    • Managing custom objects
    • Replacing standard elements
    • Configuring record search
    • Managing components
    • Setting up Salesforce Experience Cloud
    • Managing resident functions
    • Managing InCountry cache
    • Managing Apex triggers
    • Managing record synchronization
    • Managing web forms
    • Tracking changes to data regulation policies and regulated fields
    • Using Email-to-Case feature
    • Debugging
    • Migrating data from one Salesforce organization to another
  • Developer’s guide
    • Apex SDK
    • JavaScript API
    • Retrieving record statistics
    • Tracking field history
  • User's guide
    • Working with protected fields
    • Sending compliant email messages
    • Importing data into Salesforce
    • Migrating records
    • Managing audit reports
    • Converting leads
    • Managing reports
    • Using formula fields
    • Using frontend validations
    • FAQ
    • Release notes
Payment Vault
  • Documentation
BYOK
  • Documentation
FAQ
  • Get started with the platform
  • Integration options
  • Data regulation models
  • Limits and quotas
  • Video tutorials
Service Status
  • Status

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

  1. Load the InCountry application.

  2. On the menu, select Settings.

  3. Locate the InCountry Cache block and expand it.

    Package settings - InCountry Cache block

  4. Locate the Cache Enabled toggle and move it right.

  5. Click Link to InCountry Partition.

    Platform Cache Partition - InCountry Cache

  6. On the Platform Cache Partition: InCountryCache page, click Edit.

    InCountry Cache size defined

  7. Locate the Org Cache Allocation option group.

  8. 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.

  9. 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.

  1. Load the InCountry application.

  2. On the menu, select Settings.

  3. Locate the InCountry Cache block and expand it.

    InCountry Cache block

  4. 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 vary

  • FIELDS (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.

← Managing resident functionsManaging Apex triggers →
  • Enabling InCountry Cache
  • Clearing InCountry Cache
InCountry logo blue
© InCountry 2022.
All rights reserved. InCountry, Inc
  • PRIVACY POLICY
  • TERMS OF SERVICE
  • Social share
    • YouTube logo
    • Facebook logo
    • Twitter logo
    • LinkedIn
  • Column 1
    • Products
      • Products
        • InCountry for Salesforce
        • Data Residency-as-a-Service
        • Alibaba Cloud InCountry Service
        • Compliance and security
      • Gateways
        • Email
        • Payment Vault
        • Web Forms
        • HTML
      • Developers
        • REST API
        • SDK
  • Column 2
    • Solutions
      • Automotive
      • Energy
      • Financial services
      • Healthcare
      • Retail
      • Technology
    • Integrations
      • Cegid
      • Intertrust
      • MuleSoft
      • PayPal
      • Salesforce
      • ServiceNow
      • Stripe
      • Veeva Systems
      • Yandex
  • Column 3
    • Resources
      • Country compliance
      • Documentation
      • Library
      • Partners
      • Pricing
    • About
      • News and Blog
      • Careers
      • Contact Us
      • FAQ
      • Leadership