Questions tagged [cache]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
395 views

How to disable LWC caching on a mobile app?

So I disabled Enable secure and persistent browser caching to improve performance in caching as advised to disable caching. On my laptop, caching is disabled. However, after making changes on my ...
1 vote
0 answers
31 views

How does persistent browser caching work internally?

What does this option do internally? Enable secure and persistent browser caching to improve performance in caching And when does it reload new HTML / CSS into a user's mobile device? When updating ...
0 votes
0 answers
28 views

What is the easiest way to update an LWC component on mobile user devices?

Whenever we have an update, currently we are pressing many buttons to clear the cache. Examples are: Clear Cache inside the SF app Reload Salesforce button Force stop in app info Clear cache in app ...
10 votes
2 answers
2k 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
0 answers
48 views

How to stop a static resource loaded from a LWC as a Quick Action from impacting other LWCs as Quick Actions?

I have two Quick Actions that leverage LWC components on the Opportunity flexi-page. In my first LWC, I have a custom CSS from an imported static resource that gets loaded in a renderedCallBack. The ...
1 vote
3 answers
1k 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?
1 vote
1 answer
62 views

How can I store a large file in Attachments?

Our team has built a caching system for lengthy data analyses that we're already using for two types of analyses. I'm working on a third type where the file size of the analysis (zipped) is over 100 ...
0 votes
1 answer
109 views

Standard Cache Org Unable not working

I wrote this code and am trying to confirm it is working but everything I have tried (test class, anonymous apex and even a scheduled job) so far has not allowed me to confirm the cache is actually ...
4 votes
1 answer
322 views

How to develop Lightning LWC and Aura Components after Winter 24 Release without 10 minutes waiting and without cache clear and without Debug Mode?

Today I went nearly crazy while working on an Aura component. I'm saving my work but the UI does not update. Damn! Waiting a while (about 10 minutes) my changes are finally showing up. This is ...
0 votes
1 answer
454 views

User is getting auto logged into an app on iOS even after logout

We have a custom application build on SF mobile SDK. We have a connected app on the CRM side where we use REST APIs for the communication with the mobile application. We noticed a peculiar issue on ...
1 vote
0 answers
208 views

Can't access Session Cache from Invocable Method

I have a use case where a user fills out a form on one page, navigates to a second page, then starts an Einstein Bot flow, which I would like to have access to the values the user entered on the first ...
1 vote
1 answer
768 views

Clearing SOQL query cache for query performance testing

I'd like to do performance tests of the same SOQL query to check which order of WHERE and indexes configuration would be the fastest, but database caching makes it hard - after the first SOQL, the ...
2 votes
1 answer
2k views

LWC: cache refresh across different components? advanced technicies for cache management?

Let's say we have 2 LWC components: createOpportunity component, which uses Apex to create an Opportunity. opportunitiesList which uses @wire to get the list of Opportunities for a particular Account....
15 votes
2 answers
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 ...
0 votes
1 answer
417 views

Why my lightning spinner doesn't work right?

I have a apex class that call an API, the data of the API like endpoint is on a custom setting, and I did a lightning component to call this API with the apex class. It works fine, only for one ...
0 votes
0 answers
31 views

refreshApex: can't make it work [duplicate]

Okay so I am using a lightning datatable and I want to update or more rows of a specific field. The problem is that the table is not refreshing after the records are updating so I feel like I'm ...
1 vote
1 answer
2k 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 ...
1 vote
1 answer
309 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
2 answers
238 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
0 answers
99 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
2 answers
220 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
1 answer
2k 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
2 answers
371 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
1 answer
632 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
0 answers
37 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 ...
1 vote
1 answer
374 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
1 answer
787 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
0 answers
308 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 "...
3 votes
1 answer
1k 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
2 answers
78 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
1 answer
610 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 ...
1 vote
0 answers
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 ...
11 votes
1 answer
157 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 ...
5 votes
1 answer
8k 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'...
1 vote
1 answer
627 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
0 answers
222 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 ...
11 votes
0 answers
496 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 ...
3 votes
1 answer
635 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
2 answers
653 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 ...
5 votes
0 answers
141 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
1 answer
6k 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(){ ...
0 votes
1 answer
198 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 ...
4 votes
1 answer
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 ...
3 votes
2 answers
935 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 ...
0 votes
1 answer
419 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
1 answer
526 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
1 answer
234 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 ...
3 votes
1 answer
635 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
1 answer
335 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
1 answer
3k 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 ...