After reading this article, you will learn what Platform Cache is about, how Platform Cache works, and how to enable it on your org.
Before you get started
These articles might be helpful before you read further:
What is Platform Cache?
Platform Cache is a memory layer that stores Salesforce session and org data for later access. When you use Platform Cache, your applications can run faster because they store reusable data in memory. Applications can quickly access this data; they don’t need to duplicate calculations and requests to the database on subsequent transactions. In short, think of Platform Cache as RAM for your cloud application.
Youreka and Platform Cache
When it comes to Youreka, Platform Cache reduces the amount of time end users need to wait for templates to download to their mobile device. Youreka is utilizing the newly available platform cache for Apps on the AppExchange which provides 2MB of storage at no additional cost. Users can purchase additional storage from Salesforce if interested.
Enabling Platform Cache
To enable Platform Cache in your org, complete the following steps:
- From Setup search "Custom Settings" in the Quick Find on the left.
- Select Custom Settings.
- Select Youreka Public Settings.
- Select Manage.
- Select Edit.
- Check the checkbox for Template Cache Enabled.
- Set Template Cache Lifespan to a value between 1-48 Hours. If the box is left empty, it will default to 24 Hrs. Template Cache Lifespan is the amount of time that a template version will be available for use when requested by a user.
- Click Save.
Users can view the Org's Current Cache Usage, the Org's Capacity Breakdown, and Partition Allocation by going into Setup and searching 'Platform Cache'.
To reset/clear cache immediately, click the Clear Cache button.
Please sign in to leave a comment.