0

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?

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

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

https://magento.stackexchange.com/a/303941

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, privacy policy and cookie policy

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