From 26f97fa04376b0c1dc312090a55056ebeaaf21e5 Mon Sep 17 00:00:00 2001 From: Kateryna Degtyariova Date: Tue, 24 Aug 2021 11:50:21 +1000 Subject: [PATCH] H5P module locking session after saving Close session before finishing zip file, which might take substantial time to allow other pages to use session without waiting on the file operation to finish. --- h5p.classes.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index 1886301..2a124b2 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1927,6 +1927,11 @@ Class H5PExport { } } + // Close session before finishing zip file, which might take + // substantial time to allow other pages to use session without + // waiting on the file operation to finish. + \core\session\manager::write_close(); + // Close zip and remove tmp dir $zip->close(); H5PCore::deleteFileTree($tmpPath);