Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [cache]

The tag has no usage guidance.

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

Behavior of draft-values tag in a lightning-datatable changed in Summer'24

I have a Lightning Web Component that is feature-rich, so to say. 250 lines of HTML and 1350 lines of JS. Due to these sizes, I cannot list the complete source. One of the things that it uses is this ...
Sander de Jong's user avatar
1 vote
0 answers
32 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 ...
Z0q's user avatar
  • 59
0 votes
0 answers
29 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 ...
Z0q's user avatar
  • 59
1 vote
0 answers
61 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 ...
Andy Hitchings's user avatar
1 vote
1 answer
65 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 ...
Chuck's user avatar
  • 967
2 votes
2 answers
459 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 ...
Z0q's user avatar
  • 59
0 votes
1 answer
150 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 ...
Daryn Aucoin's user avatar
5 votes
1 answer
374 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 ...
Uwe Heim's user avatar
  • 28.4k
0 votes
1 answer
505 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 ...
VarshaVRK's user avatar
1 vote
0 answers
219 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 ...
Kris Labovitch's user avatar
1 vote
1 answer
824 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 ...
zanstaszek9's user avatar
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....
ytiq's user avatar
  • 4,545
0 votes
1 answer
437 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 ...
Alexia Ribeiro's user avatar
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 ...
devoid_of_chill's user avatar
1 vote
1 answer
3k 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 ...
Rahul Allada's user avatar
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 ...
Sacha Dieryck's user avatar
1 vote
2 answers
248 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 ...
Swisher Sweet's user avatar
1 vote
0 answers
102 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/...
Jakub Koralewski's user avatar
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 ...
sf_dev's user avatar
  • 11
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 ...
sandy's user avatar
  • 1
5 votes
2 answers
377 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 ...
Brian Kessler's user avatar
2 votes
1 answer
644 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 (...
C0DEPirate's user avatar
  • 1,606
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 ...
Ysr Shk's user avatar
  • 3,157
1 vote
1 answer
384 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 ...
McD's user avatar
  • 1,266
1 vote
1 answer
796 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?...
Shivananda Yalpi's user avatar
0 votes
0 answers
314 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 "...
Shivananda Yalpi's user avatar
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 ...
dream3n's user avatar
  • 39
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 ...
New's user avatar
  • 39
0 votes
1 answer
619 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 ...
ahmad hassan's user avatar
11 votes
1 answer
161 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 ...
Pranay Jaiswal's user avatar
1 vote
1 answer
632 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 ...
BlondeSwan's user avatar
  • 1,098
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 ...
Red Rick's user avatar
11 votes
0 answers
515 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 ...
Shanerk's user avatar
  • 1,076
0 votes
2 answers
655 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 ...
Anil Kumar's user avatar
5 votes
0 answers
148 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 ...
Valyrion's user avatar
  • 1,144
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(){ ...
Robs's user avatar
  • 9,356
3 votes
2 answers
943 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 ...
Tony Rush's user avatar
  • 290
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 ...
sfdcYodha's user avatar
0 votes
1 answer
424 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 ...
jschleicher's user avatar
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, ...
VarunC's user avatar
  • 5,950
0 votes
1 answer
236 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 ...
JPG's user avatar
  • 198
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 ...
jayasuriya janarthan's user avatar
3 votes
1 answer
643 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 ...
Boris Bachovski's user avatar
0 votes
1 answer
337 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 ...
Tyler Dahle's user avatar
  • 2,709
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 ...
Boris Bachovski's user avatar
3 votes
1 answer
1k 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/...
Jaren's user avatar
  • 73
2 votes
0 answers
675 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 ...
Mark Jay's user avatar
1 vote
0 answers
2k 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': ...
Raja Vivekanandhan's user avatar
1 vote
1 answer
317 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 ...
AMM's user avatar
  • 4,704
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'...
Milos Djukic's user avatar