I need to generate some files that I only need for the duration of a
If I create these files in the Rails "tmp" directory, is there any
automagic process that will periodically clean out the "tmp" directory,
or is that something that I would have to manage myself?
rake tmp:cache:clear # Clears all files and directories in tmp/cache
rake tmp:clear # Clear session, cache, and socket files from tmp/
rake tmp:create # Creates tmp directories for sessions, cache, and sockets
rake tmp:sessions:clear # Clears all files in tmp/sessions
rake tmp:sockets:clear # Clears all files in tmp/sockets
Add one or more of those to your crontab file and that should do it for you...