Notifications
Clear all
Topic starter
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:
- A . In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
B. In block class_construct() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
C. In block class toHtml() method, set_isScopePrivate property to false as per requested page number.
D. In block class_construct() method, set_isScopePrivate property to false as per requested page number.
Suggested Answer: B
Posted : 13/01/2023 10:22 pm