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

Statically cache profile_get_custom_fields when userid = 0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Labels:
      None

      Description

      There are a few pages which end up calling profile_get_custom_fields 20+ times (eg site admin) and almost all of the calls are for userid = 0 which just loads the fields with no data. There should be a param which defaults to true which returns statically cached results and I think this could be true for when userid = 0 and perhaps also when it matches the current user.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            brendanheywood Brendan Heywood
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: