3

Since Magento 2 now supports Varnish out of the box, is there anything in particular to have in mind while creating themes regarding compatibility with Varnish? Is there any mechanism to use for hole punching? Is there any official guide to follow?

1
  • does Magento 2 varnish cache supports holes?? hm i need to check it again.
    – MagenX
    Commented Dec 10, 2015 at 19:13

1 Answer 1

2

Themes should not have any issues they need to concern themselves with. The issue is around blocks. If they generate content that should not be cached, so need to report "this content should not be cached". There is also the ability to associate cache tags to allow selective cache purging. But this is not theme related - it is block php code related. A lot of m2 was to take this pain away from developers.

Your Answer

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

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