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

Improve performance of get_fragment by not rendering blocks

XMLWordPrintable

    • Easy

      We found an interesting performance issue with, the specific example was with the grader interface in mod_assign but I believe it is a more generic bug with core_get_fragment

      POST lib/ajax/service.php?sesskey=w44w4Y24QY&info=core_get_fragment

      The proximate issue we had was that the course in question had a bunch of blocks which were somewhat expensive to render (block_progress in this case). By expensive I mean slow enough to have a measurable performance effect but not bad enough to be an issue in its own right.

      But when the grading interface calls core_get_fragment then behind the scenes it is rendering a full page including all the blocks and then throwing it all away and just returning some subset which doesn't need it.

       

            christina_roperto Christina Thee Roperto
            brendanheywood Brendan Heywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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