Questions tagged [cache]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
71 views

LWC Apex data not getting the latest data from backend in SF Communities

I suppose there are two pages in Communities namely, Page A and Page B. Page A has an LWC component which has @wire method. This wire method gets the Account details of the particular user. The wire ...
5
votes
1answer
53 views

How to force cache refresh on community when releasing to production?

We have a community composed of multiple LWC. We are planning to release a big update in our production environment. When testing in other environments, some testers who had used the community ...
1
vote
2answers
83 views

Are there any risks/issues using a List's hashCode as key for caching results?

I'm considering using a combination of static variables and the List object's hashCode method to cache the results of a SOQL call based on the values being passed in (accountIds). The methods will be ...
1
vote
0answers
22 views

Docker redownloading base image at each deploy (heroku.yml)

My build logs, but the important bit below: aac6a114e757: Pull complete Digest: sha256:48b6801235e4179dec2427bd57853239553ea8bba20fba496df219469370b11c Status: Downloaded newer image for mhart/...
1
vote
2answers
52 views

VF Email Image loads when sent via 'Send Email and Verify Merge Fields' but not by community

I am currently trying to create a Welcome Email for SF Community. The email includes an image stored in Static Resources (Cache-control = public). When I tested initially using "Send Email and ...
0
votes
1answer
100 views

How to add session cache in apex class to call

I have one method from which i am calling onother method which is having soql query. Every time method calls .Soql will get executed.to avoid any performance issue i have created session.catche code ...
5
votes
2answers
150 views

Can Apex static values be used to safely communicate between executions of process builder?

We have a Process Builder which currently gets a hardcoded Salesforce Id out of an abused label and assigns it to the record. Of course, this means the solution causes tests to fail outside ...
2
votes
1answer
90 views

Platform Cache and default partition

I am implementing the platform cache for first time. My query in below snippent is taking lot of time so I want to put the query result in cache/ if(Cache.Org.contains('cvList')){ for (...
2
votes
0answers
30 views

Summer20 - recordEditForm issues

We are facing some issues with Summer20 releases. Does anybody face those issues? Scrollbar is not visible on Edit(overridden component) screen - But with hard refresh its showing scrollbar(tried ...
0
votes
1answer
82 views

Use Platform Cache to cache ~50 records from a custom object

We have a custom object that realistically should have been Custom Metadata / Custom Settings as it stores background metadata that controls how pages within our Community load. It has been very ...
1
vote
1answer
301 views

lightning:isUrlAddressable cache issue

I'm using a url button to redirect to a lightning component which has been implemented using lightning:isUrlAddressable. The url button to redirect on lead is as : /lightning/cmp/c__componentName?...
0
votes
0answers
91 views

Lightning Component Cache Issue where URL visible and decodeURIComponent(window.location.search.substring(1)) gives different output

The url of the lightning component that i could see is like "/lightning/cmp/c__LCMP_AddLeadLine?c__leadId=00Q1g000004qAR5" But "component.get("v.pageReference").state.c__leadId" gives the output as "...
2
votes
1answer
525 views

Salesforce DB query cache (how long?)

How long does Salesforce keep results of a query in its internal database. We know that the first execution of a query takes the longest. Subsequent queries are much faster due to the caching ...
0
votes
2answers
23 views

Salesforce Visualforce Update Timing issue?

I have a Visualforce page (Call VF1) which does some processing and updates a Custom object (Sales_Prints__c). After updating the sales_prints__c on VF1 I need to call another visualforce page (Call ...
0
votes
1answer
204 views

Cache issue in custom application on Salesforce 1 mobile app

Actually, I am working on lightning web components and creating a custom application on Salesforce 1 app for mobile. I am creating custom front end on LWC and custom back-end. On first screen, I have ...
11
votes
1answer
104 views

What is `apexCache` and `apexCacheWarmer` in tooling API?

I was exploring few bits using tooling API, and stumbled upon 2 endpoints that got my attention. They are /services/data/v45.0/tooling/apexCache and /services/data/v45.0/tooling/apexCacheWarmer ...
1
vote
1answer
356 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
202 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 ...
10
votes
0answers
216 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
267 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
82 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 ...
4
votes
1answer
3k 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
533 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
1k 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
137 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 ...
7
votes
1answer
464 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
215 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
1k 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
406 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
195 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 ...
5
votes
1answer
2k 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 ...
3
votes
1answer
591 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
448 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
1k 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': ...
1
vote
1answer
110 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 ...
3
votes
1answer
3k 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
176 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
549 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 ...
4
votes
1answer
958 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
139 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
281 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
220 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
78 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 ...
34
votes
2answers
16k 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
331 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
173 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 ...
3
votes
1answer
330 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
71 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....
14
votes
1answer
2k 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
517 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?