diff options
author | flashk <flashk@ampache> | 2008-01-02 00:37:06 +0000 |
---|---|---|
committer | flashk <flashk@ampache> | 2008-01-02 00:37:06 +0000 |
commit | c026d0c7afdd829c7584b22944296a058b278f67 (patch) | |
tree | 4699b7a2c6082dba727d0299ceca77854ca498b6 /admin | |
parent | 6a0573d1fe8b12f1adacf3924de9808401f8e7b6 (diff) | |
download | ampache-c026d0c7afdd829c7584b22944296a058b278f67.tar.gz ampache-c026d0c7afdd829c7584b22944296a058b278f67.tar.bz2 ampache-c026d0c7afdd829c7584b22944296a058b278f67.zip |
Output buffering is disabled when exporting catalogs.
Diffstat (limited to 'admin')
-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"); |