sap-commerce-cloud

How to resolve the component session in CCV2?


Context:

In ccv2, with two front-end machines, when the user logs in, the component still has the anonymous session. The session needs to be updated or even force the component's renderer. This is because the content of the product carousel changes depending on whether the user is logged in or not.

Observations:

enter image description here


Solution

  • Even with cms.cache disabled on all machines, the solution only worked when I removed the ProductCarouselComponent from cacheKeyProviders