Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63771

Make more use of caches in accesslib

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Since the imrpovements to accesslib caching in MDL-49398, we now have cached all the role_capabilities for each role.

      Therefore, there are many accesslib functions that could now quite easily save DB queries. E.g. get_roles_with_cap_in_context, role_context_capabilities, the queries in role_change_permission that decide whether anything needs to be changed, ...

      Just creating this as a placeholder that this would be worth doing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                timhunt Tim Hunt
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                7 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: