Edge Side Caching Includes Good Practice for Many Small Blocks?

We have so many small blocks that we want to include in ESI in a Symfony2 application. To be specific, we are talking about rating stars that appear in the product list, as well as the avatar and rank of the user that appears in the comment list. Therefore, we are talking about very small pieces of information for list items. Part of the question also is that these small blocks do not need a URL, but in order to display them as ESI, I need to give them a URL. Is this a design flaw for this, because for me, making this block access with a URL available, it feels like a design flaw.

+4
source share
1 answer

Your idea of ​​a large number of ESI blocks is not very good with varnish. The reason is that ESI requests are never issued in parallel. This is an upcoming feature, and I think release 4.0 made it much closer, but it is not.

A better solution would probably be to mark your pages according to user ids and then ban / clear tags.

0
source

Source: https://habr.com/ru/post/1540206/


All Articles