Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-40277 Investigate performance issues with course/manage.php and associated
  3. MDL-40280

coursecat::make_categories_list when called multiple times can be slow

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.5
    • Caching, Course
    • MOODLE_25_STABLE

      To build the list of dropdowns used to move a category on course/manage.php, coursecat::make_categories_list is called once per category.

      The only difference is to specify the current category so that it is not included in the array. This leads to $categorycount calls to coursecat::make_categories_list() with almost identical data.

      We could either use a MUC or static cache in print_category_edit() to only call make_categories_list once, or improve coursecat::make_categories_list() to return the cached copy earlier somehow.

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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