Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [cache]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
23 views

Cache.Session and Cookies are not working

i have created a custom VF page for login to Use in Sites. now when i bind this page with my site. first load is working fine. login also done successfully, i am using Cache.Session and Cookies to ...
user avatar
  • 73
0 votes
1 answer
28 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 ...
user avatar
2 votes
1 answer
29 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....
user avatar
  • 4,087
0 votes
0 answers
35 views

Can we force reload of the CacheBuilder class?

We have a class implements Cache.CacheBuilder in our code base. Since we changed one of the picklist value, we want to reload the Cache for this one. When I read the methods in here, it doesn't seem ...
user avatar
  • 12.7k
0 votes
1 answer
73 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
1 vote
1 answer
870 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 ...
user avatar
7 votes
1 answer
338 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 ...
user avatar
1 vote
2 answers
96 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 ...
user avatar
1 vote
0 answers
36 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/...
user avatar
  • 111
1 vote
2 answers
109 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 ...
user avatar
  • 11
0 votes
1 answer
534 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 ...
user avatar
  • 1
5 votes
2 answers
216 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 ...
user avatar
2 votes
1 answer
213 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 (...
user avatar
  • 1,549
2 votes
0 answers
34 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 ...
user avatar
  • 2,761
0 votes
1 answer
157 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 ...
user avatar
  • 1,226
1 vote
1 answer
458 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?...
user avatar
0 votes
0 answers
118 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 "...
user avatar
2 votes
1 answer
857 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 ...
user avatar
  • 29
0 votes
2 answers
35 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 ...
user avatar
  • 39
0 votes
1 answer
300 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 ...
user avatar
11 votes
1 answer
128 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 ...
user avatar
1 vote
1 answer
468 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 ...
user avatar
  • 1,000
0 votes
0 answers
212 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 ...
user avatar
10 votes
0 answers
289 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 ...
user avatar
  • 931
0 votes
2 answers
404 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 ...
user avatar
4 votes
0 answers
98 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 ...
user avatar
  • 1,074
4 votes
1 answer
4k 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(){ ...
user avatar
  • 8,223
3 votes
2 answers
625 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 ...
user avatar
  • 180
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 ...
user avatar
0 votes
1 answer
196 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 ...
user avatar
7 votes
1 answer
490 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, ...
user avatar
  • 5,596
0 votes
1 answer
222 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 ...
user avatar
  • 168
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 ...
user avatar
3 votes
1 answer
469 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 ...
user avatar
0 votes
1 answer
227 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 ...
user avatar
  • 2,319
5 votes
1 answer
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 ...
user avatar
3 votes
1 answer
716 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/...
user avatar
  • 73
2 votes
0 answers
516 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 ...
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': ...
user avatar
1 vote
1 answer
161 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 ...
user avatar
  • 4,564
4 votes
1 answer
5k 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'...
user avatar
0 votes
1 answer
185 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 ...
user avatar
6 votes
1 answer
561 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 ...
user avatar
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 ...
user avatar
  • 2,852
4 votes
1 answer
142 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"...
user avatar
3 votes
1 answer
385 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 ...
user avatar
  • 4,564
0 votes
2 answers
273 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 ...
user avatar
2 votes
2 answers
88 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 ...
user avatar
  • 387
34 votes
2 answers
18k 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 ...
user avatar
  • 917