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

Unfolding admin menu works slow when loaded by ajax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.1
    • Blocks
    • None
    • MOODLE_31_STABLE

      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.

            Unassigned Unassigned
            dmaterka Daniel Materka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.