Full Page Cache code points

Magento 2 Full Page Caching Code Points

Practices Tests

What is the difference between setting cacheable=”false” on a block in layout XML attribute and the block’s getCacheLifetime() === null?
A. cacheable=”false” and the effect of getCacheLifetime === null are the same.
B. cacheable=”false” affects the parent block or container. getCacheLifetime() === null prevents the current block from being cached.
C cacheable=”false” prevents the entire page from caching. getCacheLifetime() === null prevents the block from being cached, but it would still be cached by the full page caching mechanism.
D. cacheable=”false” prevents a block from being cached. getCacheLifetime() has been deprecated.

Answer C


电子邮件地址不会被公开。 必填项已用*标注