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

Typo in blocklib leads to block contexts being loaded 1 by 1 from DB rather than being preloaded.

XMLWordPrintable

      I just found a typo within the lib/blocklib.php that is leading to block contexts for the blocks on a page being fetched 1 by 1 (by get_context_instance) rather than being successfully preloaded by the SQL that is fetching the blocks.

      On a page with 15 blocks fixing the typo results in a 15 less database calls!

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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