I have a category page with customer specific products, so those products should display based o current customer id. basically caching issues are coming when I'm switching from 1 customer to another customer. How to disable cache only this particular category, or I need to create custom controller and custom product collection?

  • Are you using varnish cache or Magento page cache?
    – ZealousWeb
    Jun 14, 2021 at 10:13
  • @ZealousWeb yes
    – sivakumar
    Jun 14, 2021 at 10:26
  • varnish cache..
    – sivakumar
    Jun 14, 2021 at 10:27

1 Answer 1


If using Magento 2.3.4 + you can create specific layout update for that category as defined here:


and can use cacheable=false in your block in definition or blocks which you do not want to be cached.

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.