For background see enonic/xp#8448
Due to how Thymeleaf calls functions from templates they tend to serialize.
Example: imageUrl takes 5 milliseconds to return and 100 users open the same page. Requests will be serialized and last user will get the result in 500 milliseconds.
There is a better alternative: call portal functions from a controller and pass a results via model.
For background see enonic/xp#8448
Due to how Thymeleaf calls functions from templates they tend to serialize.
Example: imageUrl takes 5 milliseconds to return and 100 users open the same page. Requests will be serialized and last user will get the result in 500 milliseconds.
There is a better alternative: call portal functions from a controller and pass a results via model.