Twig: render vs include

Each render call spawns a new request, with the performance degradation issue that you are describing. I don’t think there is much you can do about that but using esi caching, so that single fragments coming from render calls can be cached. Otherwise you could try to revise your logic to reduce the usage of render calls.

Leave a Comment