QuestionQ9

Adobe Commerce Architecture and Customization Techniques

An Adobe Commerce developer must create a custom block that is displayed in the site footer on every page.

After the development is complete and optimized, the developer finds that generating the block on each page takes too long and chooses to store it in the system cache after enabling all cache groups.

What is the minimum requirement to accomplish this?

  • A Set a value for the cache_lifetime data property of the block.
  • B Set a value for cache_key data property of the block.
  • C Set values for both cache_lifetime and cache_key data properties of the block.
Explanation

Block HTML output caching requires the block to have a cache lifetime. An explicit cache_key data property is not the minimum requirement because the block framework can generate a default cache key from its cache-key information; a custom key is only needed when default key composition is insufficient.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!