Questions tagged [cache]
The cache tag has no usage guidance.
64
questions
1
vote
1
answer
85
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 ...
0
votes
1
answer
50
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
128
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
378
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
170
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
595
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
1k
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....
0
votes
1
answer
368
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 ...
10
votes
2
answers
1k
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
2
answers
206
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
88
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
207
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
348
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
559
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
36
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
324
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
745
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
269
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
67
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
542
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
1
answer
151
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
1
answer
603
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
220
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
466
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
2
answers
625
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
130
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
5k
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
2
answers
885
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
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 ...
0
votes
1
answer
363
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
520
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
232
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
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 ...
3
votes
1
answer
612
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
329
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 ...
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/...
2
votes
0
answers
622
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
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': ...
1
vote
1
answer
270
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 ...
5
votes
1
answer
7k
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
1
answer
197
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
1
answer
574
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
1
answer
1k
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
1
answer
147
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
1
answer
591
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 ...