What should the Architect do to guarantee that private content blocks are updated?

An Adobe Commerce Architect is planning to create a new action that will add gift registry items to the customer’s quote.

What should the Architect do to guarantee that private content blocks are updated?
A . Mark the controller by setting no-cache HTTP headers
B . Invalidate the status of gift registry indexers
C . Specify a new action in a sections.xml configuration file

Answer: C

Explanation:

Private content blocks are sections of the page that are specific to each customer and are not cached by the server. To update these blocks when a customer performs an action, such as adding a gift registry item to the quote, the Adobe Commerce Architect needs to specify the new action in a sections.xml configuration file. This file defines which blocks need to be updated for each action and how often they should be updated. By doing this, the Architect can ensure that the private content blocks are refreshed with the latest data from the server.

Reference: Private content | Magento 2 Developer Documentation Configure private content | Magento 2 Developer Documentation

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments