Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-24991

Precompilation is ineffective because DirectServletRegistry changes timestamps on JSPs

    Details

      Description

      Due to LPS-18560, when handling a <liferay-util:include> tag, DirectServletRegistry may update the modified timestamp of <liferay-util:include> JSPs to that of the dependency with the latest modified timestamp. The only way it leaves the timestamp alone is if the included JSP is at least as new as all of its dependencies (which include JSPs, TLDs, and potentially other files).

      Unfortunately, this behavior results in JSP precompilation being ineffective, as Tomcat 7, in seeing the timestamp change, will recompile the JSPs included with <liferay-util:include> to match any timestamp changes that resulted from DirectServletRegistry's changes.

      In order to resolve this issue, we will need to either reset all the timestamps of all JSPs and TLDs before we precompile, or we will need to track modified timestamps of dependents separately.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 21 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2