If the handler crashes or a message is missed (zmq disconnection) though, then 
you could end up with stray files. I'd say cron to delete based on last modify 
time. Any file that has not been updated in, say, 15 minutes, is deleted. I 
believe Mongrel2's default client connection timeout is shorter than this, so 
there's no way the file could still be uploading with that old of a timestamp.

On Friday, January 11, 2013 07:06:29 AM Mikael Lindberg wrote:
> Hey,
> I delete my files as soon as possible after upload, i view it as temporary
> storage only. I delete them from whatever script is handling the upload.
> On Jan 11, 2013 6:30 AM, "Ramon Marco Navarro" <[email protected]>
> 
> wrote:
> > Good day,
> > 
> >   Are there any standards or general guidelines on managing the temp_store
> > 
> > directory? Like when to  clean them and how. Would a cron script that
> > deletes uploaded files based on created date be a good idea?

Reply via email to