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

Performance issue for front page "Combo" list for site admins

    Details

    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      If you edit the front page settings and change frontpageloggedin to contain a "Combo" item, the administrator will experience very slow loading of the /index.php page if the site has many courses.

      Example: site with 6000 courses taking 2 minutes to load /index.php and placing high load on the database server.

      The "Courses list" front page item does not suffer this problem.

      The relevant code seems to be:

      echo $OUTPUT->heading(get_string('courses'), 2, 'headingblock header');
      $renderer = $PAGE->get_renderer('core','course');
      echo $renderer->course_category_tree(get_course_category_tree());

      Could that course tree be changed to not show all courses for admins?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/May/11