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?

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!