This is an old revision of the document!


Can you Exclude the Price Block from Cache for Only the Logged-in Users?

You have a situation where pricing varies per user and is fetched via API from an external ERP system. This system only applies to logged-in users. Users who are logged out should not see pricing at all.

Caching pages with this kind of setup is tricky.

LiteMage is able to cache different prices per customer group, but not per individual customers.

For logged-in users, you could make the price block into a private ESI block and configure it to be uncacheable, but you can't treat the block differently for logged-in and non-logged-in users. A custom solution would be required.

  • Admin
  • Last modified: 2017/12/13 14:25
  • by Jackson Zhang