Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11938 make_categories_list is expensive in the case of large category trees
  3. MDL-27691

Call to print_category_edit() in course/index.php causes many SQL-Queries and should use get_child_categories()

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • 1.9
    • 1.9.12
    • Performance
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Hide

      Just call course/index.php

      Show
      Just call course/index.php

      I found, that in the file course/index.php we have the function "print_category_edit()", which prints the categories recursively, when you do Site Administration->Courses->Add/Edit courses.

      Shouldn't we change the Line:

      if ($categories = get_categories($category->id)) { // Print all the children recursively

      to

      if ($categories = get_child_categories($category->id)) { // Print all the children recursively

      ?

            Unassigned Unassigned
            wagner139 Andreas Wagner
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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