inabahare / lewd2

A based file uploader
https://lewd.se
GNU General Public License v3.0
23 stars 3 forks source link

Handle user deletion (when deleting files) better #40

Closed kattjevfel closed 5 years ago

kattjevfel commented 5 years ago

Ticking the box "Delete files" and pressing Save results in 504 Gateway Time-out, but I can see that it is removing the files in the background.

However, it also occured to me that it appears to be removing one file every 2 seconds or so, and deleting 65000 files (which is the case in this instance) will take literally over 36 hours!! This clearly needs to be improved.

In conclusion: Don't throw 504 when deleting user along with files, and please for the love of god improve performance :D