diff --git a/serendipity_event_autoupdate/ChangeLog b/serendipity_event_autoupdate/ChangeLog index 6c309d05..6bc20b65 100644 --- a/serendipity_event_autoupdate/ChangeLog +++ b/serendipity_event_autoupdate/ChangeLog @@ -1,3 +1,6 @@ +1.0 + * Trying to enable flush on FastCGI servers + 0.9 * Check if ZIP extension is installed and loaded diff --git a/serendipity_event_autoupdate/serendipity_event_autoupdate.php b/serendipity_event_autoupdate/serendipity_event_autoupdate.php index 9842ec53..7f98bfa8 100644 --- a/serendipity_event_autoupdate/serendipity_event_autoupdate.php +++ b/serendipity_event_autoupdate/serendipity_event_autoupdate.php @@ -22,7 +22,7 @@ class serendipity_event_autoupdate extends serendipity_event { $propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC); $propbag->add('stackable', false); $propbag->add('author', 'onli, Ian'); - $propbag->add('version', '0.9'); + $propbag->add('version', '1.0'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'php' => '5.1' @@ -58,6 +58,8 @@ class serendipity_event_autoupdate extends serendipity_event { // Total processes $total = 3; + ob_implicit_flush(1); + // fake processing loop for($i=1; $i<=$total; $i++){ // Calculate the percentation @@ -70,6 +72,9 @@ class serendipity_event_autoupdate extends serendipity_event { document.getElementById("information").innerHTML="'.$percent.' processed."; '; + //this is for the buffer achieve the minimum size in order to flush data + echo str_repeat(' ',1024*64); + // Send output to browser immediately flush();