The following table shows the private content block(s) that have the _isScopePrivate variables configured making the block not cacheable.
Smile/StoreLocator/Block/ContactForm.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.
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.
Site Impact
Each request to Magento can trigger additional Ajax requests for non-cacheable blocks causing negative site performance.
Preconditions
The following table shows the private content block(s) that have the _isScopePrivate variables configured making the block not cacheable.
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.
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.
Site Impact Each request to Magento can trigger additional Ajax requests for non-cacheable blocks causing negative site performance.
Magento Version : 2.4.6-Beta1 EE (Cloud Pro)
Module Store Locator Version : 2.1
Environment : Production
Third party modules : NA