Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E704 Topic 2 Question 43 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 43
Topic #: 2
[All AD0-E704 Questions]

A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Reena
25 days ago
Option F: Implement a custom caching algorithm using quantum computing and blockchain technology. That'll impress the boss!
upvoted 0 times
Cecily
3 days ago
A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
...
Roxane
29 days ago
Option E: Just disable the pagination and show all 100k products at once. What could go wrong?
upvoted 0 times
Linwood
10 days ago
A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
...
Francoise
1 months ago
Option D might work, but it feels a bit hacky to set the _isScopePrivate property in the _construct() method.
upvoted 0 times
Tarra
20 days ago
C) In block class toHtml() method, set _isScopePrivate property to false as per requested page number.
upvoted 0 times
...
Lorrie
23 days ago
B) In block class _construct() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
Corinne
24 days ago
A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
...
Rossana
1 months ago
Option C is interesting, but I'm not sure if setting _isScopePrivate is the proper way to cache the data per page.
upvoted 0 times
Hildred
23 days ago
A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
...
Terrilyn
2 months ago
I'm leaning towards Option B, as the _construct() method is the right place to set the cache parameters.
upvoted 0 times
Talia
1 months ago
B) In block class _construct() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
Loreen
1 months ago
A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
...
Brunilda
2 months ago
Option A seems like the right approach, as the documentation suggests caching the block data based on the current page.
upvoted 0 times
...
Louvenia
2 months ago
But wouldn't setting _isScopePrivate property to false in toHtml() method also work? That's option C)
upvoted 0 times
...
Justine
2 months ago
I disagree, I believe the correct approach is B) In block class _construct() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...
Louvenia
2 months ago
I think the approach should be A) In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_
upvoted 0 times
...

Save Cancel