magento2-ordercomments icon indicating copy to clipboard operation
magento2-ordercomments copied to clipboard

Adobe issue with extension

Open niners52 opened this issue 4 years ago • 0 comments

DETAIL: OBSOLETE _ISSCOPEPRIVATE PROPERTY

Description

The following table shows the private content block(s) that have the _isScopePrivate variables configured making the block not cacheable.

PATH

vendor/boldcommerce/magento2-ordercomments/Block/Order/Comment.php

Recommendation

Do not use the _isScopePrivate property in your blocks. This property is obsolete and will not work properly.

Replace _isScopePrivate property by private content instead.

Reference our developer documentation for guidance:

Please submit a Magento Support ticket for assistance or feedback.

Root Cause

The _isPrivateScope variable is making block(s) not cacheable. 

Scenario/Preconditions

Since private content is specific to individual users, it is reasonable to handle this on the client-side (i.e., the web browser) instead of hitting the server for retrieving the same data on each customer request.

Always test in the Staging environment prior to making any changes to the Production environment.

Site Impact

Each request to Magento can trigger additional Ajax requests for non-cacheable blocks causing negative  site performance.


niners52 avatar Sep 22 '21 17:09 niners52