diff options
-rw-r--r-- | admin/export.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/export.php b/admin/export.php index 1b9ce4ed..4f4e39bd 100644 --- a/admin/export.php +++ b/admin/export.php @@ -40,6 +40,13 @@ switch ($_REQUEST['action']) { // Clear everything we've done so far ob_end_clean(); ob_start(); + + // This will disable buffering so contents are sent immediately to browser. + // This is very useful for large catalogs because it will immediately display the download dialog to user, + // instead of waiting until contents are generated, which could take a long time. + ob_implicit_flush(true); + ob_end_flush(); + header("Content-Transfer-Encoding: binary"); header("Cache-control: public"); |