Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39443 META: OU Moodle 2.4 performance tuning
  3. MDL-39454

is_siteadmin gets called repeatedly, is a bit slow

XMLWordPrintable

    • MOODLE_24_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MDL-39454-master
    • Hide

      1. View a course page when logged in as admin. Verify that there are no errors and that you have full access to course options e.g. the 'turn editing on' button.

      2. Log in as a student and view the same page. Verify that there are no errors and that you do not have the 'turn editing on' button/option.

      Show
      1. View a course page when logged in as admin. Verify that there are no errors and that you have full access to course options e.g. the 'turn editing on' button. 2. Log in as a student and view the same page. Verify that there are no errors and that you do not have the 'turn editing on' button/option.

      In a typical page request, is_siteadmin gets called more than 200 times. In my profiling this takes about 5ms.

      The function is not very efficient. I am investigating two approaches to improve performance with the aim of saving a couple of milliseconds.

            quen Sam Marshall
            quen Sam Marshall
            Sam Hemelryk Sam Hemelryk
            Jason Fowler Jason Fowler
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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