mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-53323 profiling: Close session as early as possible.
This commit is contained in:
parent
03b8b55f10
commit
116094595d
@ -21,9 +21,6 @@ Our changes: Look for "moodle" in code (commit #3 - always mimic from current m
|
||||
* xhprof_lib/utils/callgraph_utils.php: Modified to use $CFG->pathtodot
|
||||
|
||||
TODO:
|
||||
* with the 3 reports (index, callgraph and typeahead), close seesion asap,
|
||||
so user can continue working with moodle while the report (specially
|
||||
the graph is being generated).
|
||||
* improvements to the listing mode: various commodity details like:
|
||||
- allow to filter by various criteria
|
||||
- inline (and ajax) editing of reference/comment and deleting
|
||||
|
@ -34,6 +34,7 @@ require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
|
||||
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
|
||||
require_login();
|
||||
require_capability('moodle/site:config', context_system::instance());
|
||||
\core\session\manager::write_close();
|
||||
// End moodle modification.
|
||||
|
||||
// by default assume that xhprof_html & xhprof_lib directories
|
||||
|
@ -36,6 +36,7 @@ require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
|
||||
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
|
||||
require_login();
|
||||
require_capability('moodle/site:config', context_system::instance());
|
||||
\core\session\manager::write_close();
|
||||
// End moodle modification.
|
||||
|
||||
// by default assume that xhprof_html & xhprof_lib directories
|
||||
|
@ -26,6 +26,7 @@ require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
|
||||
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
|
||||
require_login();
|
||||
require_capability('moodle/site:config', context_system::instance());
|
||||
\core\session\manager::write_close();
|
||||
// End moodle modification.
|
||||
|
||||
// by default assume that xhprof_html & xhprof_lib directories
|
||||
|
Loading…
x
Reference in New Issue
Block a user