• I have installed your plugin and at first it worked 70% of the time, generating a zip and serving the download no problem…sometimes the page would time out or go unresponsive before the download dialogue pops up..but once I launched the site it fails pretty much every time.

    Is there something that can be done to fix this?

    https://wordpress.org/plugins/zip-attachments/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    A tough one. I haven’t done big stress tests with it.

    Is there a link I can take a look?

    Rick

    Thread Starter reydempto

    (@reydempto)

    Well first thanks for your reply. As for a link to my site, it came to the point where I had to disable the plugin. Here’s a bit more info:

    The size of the files i am zipping tended to be around 350 mb, and when your code generates the zip and places it in the /tmp folder on my server, it fails to clear those temp zip files afterwards. In a day, my 160GB of server space was almost full because the temp folder was clogged. This led to memory allocation errors and all kinds of other wonderful errors…

    So basically what needs to be done is there has to be a modification to the script to remove the temp file after it has been served, keeping the /tmp folder from being filled. Think this is something doable?

    As for the original memory errors I was getting, it seems that the high amount of traffic my site gets combined with this tmp issue was it. If I can get the tmp folder to automatically clear, then I can deal with any potential memory spikes with a server upgrade.

    Here’s my site: http://lastrewind.com — I am happy to donate my traffic to stress testing any modifications you have–I do at least 100GB of traffic per day lately.

    Plugin Author Ricard Torres

    (@quicoto)

    Oh yeah 350MB it’s pretty big. I thought that the /tmp gets cleaned automatically. I guess the bigger the size the better machine you need to create the zip on the fly.

    I’ll take a look to see what I can find.

    Thread Starter reydempto

    (@reydempto)

    Awesome, thanks! Can’t wait >:)

    Thread Starter reydempto

    (@reydempto)

    Have you figured anything out? Or at least have any advice or a nudge in the right direction? My users have been bugging the hell out of me for this. Maybe there is an alternative? If I/you/we can get this working perfectly , I would be happy to contribute some donations to your projects!

    Plugin Author Ricard Torres

    (@quicoto)

    Hi there,

    I’m sorry, I haven’t had the time to work on this. I have a lot on my plate right now and I don’t know when I’ll be able to get into the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘timeout when generating zip’ is closed to new replies.