MDL-53323 profiling: Close session as early as possible.

This commit is contained in:
Russell Smith
2016-03-15 21:21:15 +01:00
committed by Eloy Lafuente (stronk7)
parent 2941895cda
commit 5dfd5066c0
4 changed files with 3 additions and 3 deletions
-3
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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