{ Hello Magento 2 }

解决 Magento 2 应用问题,更注重深度挖掘。(ง •̀_•́)ง

0%

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