erseco / alpine-moodle

Moodle docker image based on Alpine Linux
https://hub.docker.com/r/erseco/alpine-moodle
MIT License
44 stars 34 forks source link

Moodle issue with buffering #14

Closed jvinolas closed 2 years ago

jvinolas commented 2 years ago

In moodle I don't get the progress update of events when a moodle long script is executing and giving back events to show in the page. I'll only get those at the end of the process. It happens for example when upgrading database with modules.

I think it is related to nginx/php-fpm buffering configuration. How can I modify this behaviour?

erseco commented 2 years ago

Please, tell me which long script are you running to reproduce the issue. Thanks!

jvinolas commented 2 years ago

After testing, it was the nginx gzip compression. Disabling it through the same php with header('Content-Encoding: none'); and filling the buffer after each echo with echo str_repeat(' ',1024*64); did the trick without modifying any setup.