Answer the question
In order to leave comments, you need to log in
How to make flush() work in PHP on a "long-playing page" under nginx with GZip compression?
There is a site on WordPress
On the server:
PHP 5.6 Server
:
nginx/1.15.6
Accept-Encoding: gzip,
deflate
it works as it should.
and you need to issue in the process of the message through:
public function flush_message($message, $type='')
{
printf( '<div class="flush-message %1$s">%2$s</div>', $type, $message );
flush();
}
@ini_set ( 'zlib.output_compression', 0);
@ini_set ( 'implicit_flush', 1);
@ob_end_clean();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question