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

PermissionCacheUtil clearing is too aggressive

    Details

      Description

      PermissionCacheUtil clearing is too aggressive:

      We clear 5 different caches and we clear them completely whenever calling PermissionCacheUtil.clearCache(). Most of the time we only need to clear some of the caches and only partially.

      The five different caches are:
      UserRolePortalCache: mapping of if a given user has a role.
      PermissionCheckerBagPortalCache: mapping users site and organizational roles.
      PermissionPortalCache: mapping of user's permissions.
      ResourceBlockIdsBagCache: mapping of users resource blocks.
      UserPermissionCheckerBagPortalCache: mapping of users to their associations and regular roles.

      Currently, adding an asset (page, document) or updating a user clears all of these caches. We should clear mappings to these expensive objects from these caches when and only when we have potentially made these values stale.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              preston.crary Preston Crary (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 23 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5