render_esi as of v2.5.12 includes request specific info like pathinfo which may result in separate caching of the same HTML fragment for different URLs. For example:
- We are caching a footer used in page layout for the whole site site access.
- We enter the following URL: /site/folder1 - footer is being cached
- We enter the following URL: /site/folder2 - footer is being cached again because of the pathinfo param which includes the current URL (/site/folder2) instead of being loaded itself from the cache from step 2.
Effect: Performance issues in production as the load to backend increases a lot.
URL on v2.5.8:
URL on v2.5.12 (please, locate "pathinfo" attribute):
Steps to reproduce:
The exact setup from
URL contains pathinfo or queryParams attributes.
URL should not contain pathinfo or queryParams attributes (languages to be decided).