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

Cached pages are stored using user-agent as a key, which is unnecessary, and requires more memory

    Details

      Description

      Steps to reproduce:

      1. In Control Panel, enable DEBUG log level for com.liferay.portal.servlet.filters.cache category
      2. Open other browser and make a request to welcome page.

      Expected behavior: you should not see a number as a cache key after language. Example from logs (look after EN_US#):

      Caching request HTTP://LOCALHOST:8080/O/FRONTEND-JS-WEB/LIFERAY/NAVIGATION_INTERACTION.JS?BROWSERID=FIREFOX&MINIFIERTYPE=&LANGUAGEID=EN_US&B=7003&T=1473776401758#EN_US#TRUE

      Actual behavior: user-agent is used as key as a hash number (look after EN_US# from logs):

      Caching request HTTP://LOCALHOST:8080/O/FRONTEND-JS-WEB/LIFERAY/NAVIGATION_INTERACTION.JS?BROWSERID=FIREFOX&MINIFIERTYPE=&LANGUAGEID=EN_US&B=7003&T=1473776401758#EN_US#-1076790395#TRUE

      Originally discovered in forums: https://web.liferay.com/community/forums/-/message_boards/view_message/79034233

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 6 weeks ago

                  Packages

                  Version Package