-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.2
During some performance testing on a large site, I found that repository_ajax.php was holding long session locks. In my analysis this accounted for 40% of all session locks lasting more than 10 seconds.
Looking at the script, it does not appear to mutate the session at all. I have tested setting READ_ONLY_SESSIONS true and $CFG->enable_read_only_sessions_debug, and saw no errors during calls to repository_ajax.php when uploading files.
Per Brendan's comment below, we should look at closing the session early in the file upload process, and possibly in other repository plugins that do not write to the session.