[AMOS commit] MDL-67428 navigation: Apply navigation text filters at system context Committed into Git: 2019-12-10 15:31 UTC

[AMOS commit] MDL-67428 navigation: Apply navigation text filters at system context Committed into Git: 2019-12-10 15:31 UTC

by AMOS bot -
Number of replies: 0
Author: Peter Spicer
MDL-67428 navigation: Apply navigation text filters at system context
On some larger sites, processing the navigation with format_string will
habitually load all the contexts for navigation which can take 400+ DB
queries. Explicitly tying all those format_string calls to the system
context reduces this overhead to a single DB query that probably has
already been run on the page previously.

Co-authored-by: Peter Burnett <peterburnett@catalyst-au.net>


http://git.moodle.org/gw?p=moodle.git;a=commit;h=1c3084df010ca74c4fcd8526c5dbbe5b23f06f10
http://github.com/moodle/moodle/commit/1c3084df010ca74c4fcd8526c5dbbe5b23f06f10

+ 3.11 en [configfilternavigationwithsystemcontext,core_admin]
+ 3.11 en [filternavigationwithsystemcontext,core_admin]