diff options
author | Christoph Dwertmann <cdwertmann@gmail.com> | 2015-02-05 15:37:31 +1100 |
---|---|---|
committer | Christoph Dwertmann <cdwertmann@gmail.com> | 2015-02-05 15:37:31 +1100 |
commit | ea0c142784dedbbc3e93b84bea865a40ccb6dc94 (patch) | |
tree | cbeab76e9f822777e2dc0ea64b713e76712325cf /lib/exe | |
parent | 090f83d33e04d9dfa5a75e6229b19bfab29b7b51 (diff) | |
download | rpg-ea0c142784dedbbc3e93b84bea865a40ccb6dc94.tar.gz rpg-ea0c142784dedbbc3e93b84bea865a40ccb6dc94.tar.bz2 |
Add ob_flush() to sendGIF
I'm running this dokuwiki docker container: https://registry.hub.docker.com/u/mprasil/dokuwiki/
It uses lighttpd and fastcgi. For some reason, the ignore_user_abort() feature where the browser should close the connection after the GIF has been received is not working on lighty. The browser keeps loading the page until the indexer run is complete, which leads to extremely slow load times with a larger page index.
Adding ob_flush() to sendGIF fixes the issue.
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/indexer.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index 330b8498d..2de178caa 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -199,6 +199,7 @@ function sendGIF(){ header('Content-Length: '.strlen($img)); header('Connection: Close'); print $img; + ob_flush(); flush(); // Browser should drop connection after this // Thinks it's got the whole image |