Rework album/tag downloads #19
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "tag-download"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The previous download implementation was hampered by PHP's output buffer, leading to a maximum tar of approximately 62MB on my local setup. The last commit in this PR explicitly disables output buffering before writing
tar
output.This further changes the blocking routine to work on a per-session basis, instead of using a global lock file. In case something goes sour, still, the user can just log out and in again to try again.
Presented as an alternative to #18
@ -23,3 +23,2 @@
if($album->kind !== 'Album')
throw new UnexpectedValueException('Specified tag does not correspond to an album');
if (isset($_SESSION['current_export']))
Ik zie deze check, maar ik zie niet waar deze session variable geset word? Of mis ik iets.
Oef, terecht. Ik vermoed dat ik die ben verloren in een overijverige rebase. Gaan we fixen.