mikasmart/moodle-report_benchmark

Guest login and fake user login metrics raise a warning

Closed this issue · 1 comments

Guest login and fake user login metrics use function download_file_content(), which raise a HTTP status code "303 See Other", since we are already logged in (usually as admin) when running the benchmark.

Guest login and Fake user login checks are not possible as of Moodle 4.0 and later. We have to replace them with another check for slow web response.

A good candidate is $CFG->wwwroot.'/admin/index.php?cache=1'.