-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.1.7, 2.2, 2.3
-
None
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
Similar to CONTRIB-3843, the settings tree is always generated at present, regardless of whether it is required. Additionally, MOODLE_INTERNAL should be checked for.
To fix, wrap the whole lot (including the require_once() calls) in:
defined('MOODLE_INTERNAL') || die;
|
|
if ($ADMIN->fulltree) {
|
// Existing code
|
}
|
This should further reduce page load times as the settings tree won't be generated on every page load - they'll only be generated when in the Activity modules settings tree.
- has a non-specific relationship to
-
CONTRIB-3843 automated update checker causes delays for all admins on every moodle page
-
- Open
-