DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Automatically Erase Ruby On Rails Session Files
Add to your cron:
1 */4 * * * find /tmp/ -name "ruby_sess*" -cmin +600 -exec rm \{} \;Deletes sessions over ten hours old every four hours. Otherwise your /tmp will end up overflowing. This only applies you use the file store method of session storage with Rails.






Comments
Snippets Manager replied on Thu, 2006/07/27 - 7:08am