Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1842

Cache user primary group detection during Checkout

    XMLWordPrintable

    Details

    • Change Log Group:
      Changed
    • Change Log Message:
      Detected user primary group in now cached to avoid repeated database queries.
    • Story Points:
      2
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. create "\UserHelper::getPrimaryGroup($user_id)" method detecting the user's primary group, which will cache results in the Memcache;
      2. use the "\UserHelper::getPrimaryGroup" method everywhere, where the "Users.PrimaryGroupId" column of the user is queried.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6.5h
                  6.5h