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

Unfolding admin menu works slow when loaded by ajax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      Hello,
      The administration menu works quite laggy. The browser receives the request in about 0.5 sec on my local machine which is about 20x slower that other requests. It generates about 3 sec. lag when connecting to the remote instance.

      The culprit is load_administration_settings function inside /lib/navigationlib.php

      the first run of the code launch code in the condition starting here:
      https://github.com/moodle/moodle/blob/master/lib/navigationlib.php#L3662

      xls file attached to the ticket shows particular times of invocation of the function load_administration_settings during ajax request.

      The first run of this function takes about 95 % of execution of whole ajax script

      Is there a way to optimise the functioning of the menu, maybe implementing a cache could do the job?

      Thank you for considering my request.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dmaterka Daniel Materka
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: