Title: timeout when generating zip
Last modified: August 21, 2016

---

# timeout when generating zip

 *  [reydempto](https://wordpress.org/support/users/reydempto/)
 * (@reydempto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/)
 * 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/](https://wordpress.org/plugins/zip-attachments/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096246)
 * 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](https://wordpress.org/support/users/reydempto/)
 * (@reydempto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096293)
 * 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](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](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096299)
 * 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](https://wordpress.org/support/users/reydempto/)
 * (@reydempto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096301)
 * Awesome, thanks! Can’t wait >:)
 *  Thread Starter [reydempto](https://wordpress.org/support/users/reydempto/)
 * (@reydempto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096371)
 * 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](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096373)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/zip-attachments_b6b8b6.svg)
 * [Zip Attachments](https://wordpress.org/plugins/zip-attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zip-attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zip-attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/zip-attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zip-attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zip-attachments/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/timeout-when-generating-zip/#post-5096373)
 * Status: not resolved