Using M1 at the moment with Varnish for FPC, we always had an issue where Prices would get cached by the first Customer Group that would view a page.

For example, if a Wholesale Customer loaded a product, they would see their lower price. And then if a Retail Customer loaded the same page moments later, they would also see the lower price instead of theirs.

I know you can configure Varnish to account for that, but it was so un-user-friendly to get it right.

So I was wondering, if that will happen with the M2 FPC as well, or if Magento have already accounted for that?

  • probably you have to upgrade your M1 Varnish Cache extension, Turpentine?
    – MagenX
    Nov 18, 2017 at 10:01

1 Answer 1


Yes, M2 has the different copy of content per Customer Groups.

Plugin in from Customer Module add Customer Group Id to http context that responsible for generate cache id

  • how to generate cache by customer id not customer group
    – sivakumar
    Jun 4, 2021 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.