Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache]

The tag has no usage guidance.

1
vote
1answer
49 views

Promise function in WireMethod not working properly

I am writing this wire method that when the data is loaded, it will trigger off a refresh of some other wire methods dependent on the results of this wire method. I do this by using a Promise and ...
0
votes
0answers
40 views

Lightning Custom Caching

Hello Lightning Experts, How to implement custom caching in Client Side for Lightning. Is HTML 5 Web Storage is right option for this? Use Case: Based on the service address, show the service ...
0
votes
0answers
31 views

lightning component unable to remove cached data

I have a lightning component that implements isURLAddressible and it is invoked with a button from lightning case record page. The button opens a lightning modal that creates opportunity record. ...
8
votes
0answers
89 views

Cache.Session not honoring ttlSecs argument?

I'm using session cache and trying to set the TTL (lifetime) to 60 minutes. However it is expiring much more quickly (it appears to be using the default 5 minute expiry). The docs say TTLs is ...
0
votes
2answers
76 views

9.6MB of space is used out of 10MB of Custom Settings data size.

We are facing this problem in one of our ORG. 9.6MB of space is used out of 10MB of custom settings data size. Can we request Salesforce Support Team to increase the limit? I came across other ...
4
votes
0answers
55 views

How can I manage lightning components' navigation-related caching

This is related to this question: Navigation in Desktop Lightning Experience not Destroying Components My components are listening to the force:refreshView event, but since the components are cached ...
2
votes
1answer
504 views

SessionCacheException: A default partition was not found. To cache without partition reference, designate a partition as default

I have a simple class for storing values in the cache, similar to this: public class PersonSessionCache { private static final String PERSON_KEY = 'Person'; public static Id getPersonId(){ ...
3
votes
2answers
144 views

Cache.Session.contains() always returns False on next script execution even after adding Key with .put()

I am attempting to store values in Cache via an Apex script. I use the Cache.Session.put() method and if I subsequently call .contains() on the next line of the code then the Key shows properly as ...
4
votes
1answer
840 views

lightning:recordEditForm “Received unexpected value during emit” error on loading randomly

I have one Lightning component with lightning:recordEditForm. Some times this is throwing an error "Received unexpected value during emit".If i refresh it sometimes it is not showing any error.It is ...
0
votes
1answer
65 views

Cache value not being saved in Org from Async call

I have a batch call that calls a queuaeble that calls a future call which utilizes a visualforce page 'getContentAsPdf' function. Also in this queuable call I set a custom class value to a local ...
5
votes
1answer
268 views

Can we programatically verify the Lightning Component setStorable() cached actions?

I'm building a Lightning Component that relies on heavy pulling of data from server side. but also has Filters. I was thinking to make use of setStorable() action for pulling data from Apex. Now, ...
0
votes
1answer
137 views

Salesforce1 Offline Cache

I have a requirement to cache some custom object data in Salesforce1 offline that will only be accessed in emergency situations (1-3x/year). From my understanding Offline mode only works for recently ...
1
vote
0answers
530 views

CSV Download Button in Lightning

I have created a 'Download csv' button through lightning page.When I click the button and choose the user from the dropdown for whom the related list be downloaded.The entire list according to the ...
3
votes
1answer
227 views

Platform Cache System Error (Random)

A few of the users in the system have hit an interesting error after implementing some functionality around the platform cache. I received the emails as the owner of the files, but I was not able to ...
0
votes
1answer
100 views

apex:image on visualforce page not updating on page reload when user updates the image document it uses

When a user uploads an image on my Visualforce page, it correctly adds or updates the document in a document folder in Salesforce. When the document is added or removed, if I refresh the page, the ...
4
votes
1answer
526 views

Session Cache Bug When in @future Context

We built a little framework around managing Session Cache. It wasn't until today we referenced some of the caching methods from a @future method. I understand that in this case it might be better to ...
1
vote
1answer
256 views

Platform Cache always returns null

I have setup Platform Cache on several dev orgs and each time I try to access a value I am getting null. I followed the steps from https://trailhead.salesforce.com/modules/platform_cache/units/...
2
votes
0answers
271 views

Marketing Cloudpages live landing page going blank

I have created a simple landing page that is now live. I had to make a simple test change and once I had saved the change the live page went blank for up to 20 minutes. Once it had come back up some ...
1
vote
0answers
616 views

Apex unit testing - Session cache is only supported in Data Silo tests

I am using platform cache.When I try unit test a Apex method that uses Session Cache, I get the following error: cache.Org.OrgCacheException: Failed Cache.Session.get() for key 'userContext': ...
0
votes
0answers
36 views

Flow To Touch A Record

I'd like some input from someone other than my own testing and experience. I need to touch "a record" in an object "every hour" (doesn't matter which record, first or last is fine). In the GUI, I'm ...
1
vote
1answer
491 views

Best storage for access token?

What would be the best place to store access token and similar data in a Salesforce application? My apex class retrieves some data which is used for client authorization on some external API (it doesn'...
0
votes
1answer
150 views

Salesforce lightning sharing server response between components in different pages in community

I want to be able to cache the server response received in one Salesforce lightning component on page 1 and later be able to use the response on page 2 component. I was reading through using ...
6
votes
1answer
429 views

Lightning: Caching Actions Across Components

I have been using Storable Actions to help reduce the amount of identical calls that are going back to the server. Everything is working great but I have a question surrounding how this works across ...
3
votes
1answer
445 views

Lightning Component - Caching / reload / render issue (whilst using ChartJS)

I have a Lightning component that displays a chart with ChartJS. I am in an org with Locker Service disabled. I have designed the Lightning component for reuse, so that I can use the same component ...
4
votes
1answer
128 views

Why can´t I read or edit recently created records using Salesforce1 offline?

I´m creating a new record (when login to salesforce via browser or salesforce1 online), the system creates 5 records in other 5 objects, each with a master detail relation with, every time the "parent"...
3
votes
1answer
96 views

Sandbox “Caching” Issue - Slow First-Record Access

This is a problem I've dealt with randomly for many years now. At my new company, our Full sandbox has what I like to call a "caching" issue. I know no other way to describe it. Every morning, I am ...
0
votes
2answers
101 views

Does salesforce cache the lookup objects

I am basically from java backgroud and new to salesforce. Need suggestion on following query: Suppose we have two custom objects - A and B . A has lookup field to B . We have three objects data ...
2
votes
2answers
72 views

Why does the cache seem to know my member variable's value before I save it?

I'm playing around with session/org caches, and I came across something interesting. It seems that if I create a class which can save itself to the cache, then change a member variable on an instance ...
27
votes
2answers
7k views

Salesforce Lightning Component Cache

When developing a lightning components in the lightning experience, let's say I make a change to custom_componentController.js. If I want to see these changes in the lightning UI, I have to hard ...
1
vote
0answers
232 views

Static resource won't refresh

I have a static resource with is a Javascript file of about 1mb. After successfully uploading the file, and clearing the cache of the page that uses the static resource, it's still using the old ...
0
votes
1answer
118 views

TriggeredSend email quese and caching [closed]

While calling TriggeredSend in a loop - does it create a queue and processes the email or does ExactTarget sends email right away? We are sending email to list of people by calling TriggeredSend in ...
4
votes
1answer
211 views

Platform cache org value available to other processes? (such as Dev console)

Just curious on the visibility of a setting created in the platform org cache. I have a process that runs and creates this name-value pair and I then try interrogating it from the Dev Console and it ...
0
votes
0answers
63 views

Preserve the state of rerender panel after navigating from page

I've got a search results page that are rendered dynamically, from where user navigates to a result via public PageReference displaySiteDetails(){ try { selectedSite = sitesMap....
12
votes
1answer
1k views

Org Cache VS Custom Settings?

Can anyone provide a good example scenario for using "Org level platform cache" versus custom settings? I can understand when you would use session cache but I am still trying to come up with an ...
1
vote
2answers
229 views

Cleared Code Coverage cache

How can I clear the code coverage and I'm stuck to 60% and regardless its not what test I write its not increasing but my question is: is there a way to flush the cache?
5
votes
1answer
44 views

How can I see cache hits. force.com site with PKB and url rewriter

We are hitting > 1million page views a month so I began looking at ways to reduce it. I found that we had explicitly set cache=false on the 3 main pages. A month ago I set this to cache=true with a ...
2
votes
0answers
72 views

IE loads twice softphone adapter in console

In the organisation, there is a call center definition file that loads a softphone component. When debugging it with IE10, I can see the softphone adapter is loaded twice. It happens in Console mode, ...
1
vote
0answers
214 views

Lightning - static resource deployment - javascript code

I am using the migration tool to deploy javascript files containing logic to display charts in a lightning component. To test my code I need to set the chrome developer console to not cache files to ...
21
votes
2answers
6k views

custom setting getAll() versus SOQL

Does anyone have any background on which and when using the built in getAll() method for custom settings is better than just using traditional soql? I am aware that getAll retrieves from the cache ...
4
votes
2answers
242 views

Salesforce Timing/Cache issue ?? Update record before generating a VF PDF

I have a custom button which generates and sends an invoice pdf. Just before to generate the pdf, if the issue date of the invoice is null, I set the date to today, then I generate the PDF. The code ...