Questions tagged [platform-cache]

The Force.com Platform Cache layer provides faster performance and better reliability when caching Salesforce session and org data. Specify what to cache and for how long without using custom objects and settings or overloading a Visualforce view state. Platform Cache improves performance by distributing cache space so that some applications or operations don’t steal capacity from others.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
55 views

How can I detect that a packaged Platform Cache Partition has no capacity allocated?

I have a platform cache partition that is packaged as part of a managed package. Once it is installed in a subscribers org it defaults to zero capacity. Using getPartition() and OrgCacheException I ...
4
votes
1answer
238 views

Salesforce Platform Cache not working in Sales Console

I am using the Platform Cache to store the Id of the customer the salesperson is speaking with on the phone, such that different Lightning Components automatically load the customer's details as the ...
4
votes
1answer
287 views

How to specify namespace and partition for Org Cache when creating managed package?

I'd like to make an ISV App / Managed package that uses the Platform Org Cache. The clearest directions on how to do this are described in this trailhead. However, when writing my code, I am unclear ...
4
votes
0answers
93 views

Platform cache increasing visualforce execution time

I have decided to use platform cache to retain the result of an expensive callout and processing. Doing so eliminated the callout time and shaved 500ms off of the apex time. Unfortunately my gains ...
3
votes
0answers
131 views

Detecting change on Record in Lightning Web Component withing Communities

I am looking for a solution to a basic scenario: A User in a Community submits an Opportunity, this Opportunity is enriched with data synchronously upon insert and asynchronously through ...
3
votes
0answers
252 views

Example how Lightning components share data via custom Platform Cache

The title already contains basically everything. Using Google I didn't find a single code example on how to use a custom Platform Cache to save and retrieve data from Lightning components. This is ...
3
votes
0answers
117 views

How to tell if Platform Cache is available in package?

If I include a Cache Partition in my managed package but don't activate it in the subscriber org (i.e. subscriber has not purchased a license), how do I check if I should be hitting the cache or not? ...
2
votes
0answers
22 views

Org Cache Behaving differently in Sandbox

I'm using org cache to store the results of a call to the google maps geocode api. Just noticed, the caching doesn't seem to work in a Sandbox. You can see how I'm storing/accessing here: public ...
1
vote
0answers
18 views

Writing master-detail records to platform cache

Platform Cache is very good feature for my development work. Today I came across a scenario which it doesn't work the way I intended. Perhaps someone can clarify that for me. I have retrieved a ...
1
vote
0answers
72 views

Is it possible to cache into local org partition from a managed package?

Is it possible to cache into local org partition from a managed package? In other words can we do this Cache.Org.put('local.ABCPartition.XYZ', 'Test Object'); from the managed package, where in ...
1
vote
0answers
52 views

Accessing partitions in Platform cache

I have created a couple of partitions in the platform cache of my Org.One of them is default. As per the documentation to access the default partition mentioning the name of the partition is enough ...
1
vote
0answers
289 views

BUG: Unable to clear Platform Cache, Missing Capacity Visuals

I'm not sure why this happens or how to fix it... usually it just fixes its self within moments or hours (never really consistent). But some how the partition visuals just disappear. Unfortunately ...
0
votes
0answers
11 views

Cache storing objects greater than 100 KB

we use the salesforce org cache in one of our flows and we are getting Cache.ItemSizeLimitExceededException. I queried the cache and found that although the limit specified according to this doc is ...
0
votes
0answers
40 views

Deploy cache partition to org without Platform Cache enabled

I wanted to deploy PlatformCachePartition Metadata to an org without having to enable or buy PlatformCache from Salesforce. The org would not use the PlatformCache just contain the pushed Metadata. Is ...