A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly. What will improve performance? (Choose three.)
Correct Answer: ABE
By default, pages that do not have the cache attribute set are cached for ten minutes (600 seconds). So it already defatuls to cache=true and it will not have effect in page loading.
Only the components in the body of the are processed by the server, thereby increasing the performance of the page.
In order to reduce the view state, make use of the following:
1. "Transient" keyword - to declare instance variables that can't be saved, and shouldn't be transmitted as part of the view state for a VF page.
2. Minimize the number of forms i.e <apex:form> on a page. Make use of <apex:actionRegion> instead of using 2 or more forms.
3. Refine your SOQL to retrieve only the data needed.
4. All public and private date members present in standard, custom and controller extensions are saved as a part of view state. so use transient variables which are not stored in state of page.
5. Instead of using <apex:commandlink> or <apex:commandbutton>, go for <apex:outputlink>
https://help.salesforce.com/s/articleView?id=000384480&type=1
I reviewed the documentation, it is set to FALSE for INTERNAL users by default, hence, it needs turned on. If the question asked about customers, the default is TRUE, cache is already enabled.
Reference: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm
My guess is that B is not relevant because it explicitly states that it is a multi-page interface, so it is less likely there will be a need for re-rendering.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Liquad
Highly Voted 3 years, 2 months agoPeter808
2 years, 1 month agoYas010101
Most Recent 10 months, 2 weeks agoSapphire808
1 year, 1 month agoTing21
1 year, 7 months agolorenac2
1 year, 10 months ago