function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

Caching the information in client side

Hello,

I am using aura components.  I have overridden the standard view page with custom aura.

Is there any way in javascript to cache the loading of pages.

Thank you for advise
VinayVinay (Salesforce Developers) 
Hi Sandrine,

Use apex method with @AuraEnabled(cacheable=true).  Look at the JavaScript code for the sample component below.

https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_result_caching
https://jayakrishnasfdc.wordpress.com/2020/02/23/caching-in-salesforce-lightning-components/

Thanks,