MDL-57810 lib: Disable nginx buffers when not required
This commit is contained in:
@@ -1381,6 +1381,10 @@ function disable_output_buffering() {
|
||||
ini_set('output_handler', '');
|
||||
|
||||
error_reporting($olddebug);
|
||||
|
||||
// Disable buffering in nginx.
|
||||
header('X-Accel-Buffering: no');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user