Issue
Reproduction steps:
- Startup the portal
- Set the following log levels:
com.liferay.portlet.sites.util DEBUG
com.liferay.exportimport.internal.controller INFO
com.liferay.layout.admin.web.internal.exportimport.data.handler.LayoutStagedModelDataHandler WARN - Create a site template
- Create a site from this template
- Add a new page to the site
- Add a new page with the same name and friendly URL to the template
- Refresh the site
Expected result: After one attempt, the site template propagation stops, and only restarts when the URL of the conflicting layout is actually changed.
Actual result: The site template propagation is started for every getLayout() call, even multiple times for a one-page load. This is visible from the many "Acquired lock..", "Applying layout set prototype...", "Released lock..." messages from the log. Also, the page load time is significantly longer than usual.
Environment
- Liferay DXP 7.2
Resolution
- This is a known issue and the fix has been released in Fix Pack 10 and higher version
- If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack/Hotfix in your environment.