Pat Maddox
2005-Jul-24 13:06 UTC
Rails, lighttpd, fastcgi - sessions don''t get deleted from /tmp
I''ve noticed since I''ve been developing Rails apps that the session files in /tmp never get deleted, they just build up forever until I manually delete them. While searching for something else yesterday, I found an article where the guy mentioned that, but I didn''t save it. Does anyone have any info on how to prevent these session files from building up so much? Thanks
Ron Sweeney
2005-Jul-24 13:12 UTC
Re: Rails, lighttpd, fastcgi - sessions don''t get deleted from /tmp
I just cron this, I think I got it from Peter Coopers snippets site:
/15 * * * * /usr/bin/find /tmp/ -name "ruby_sess*" -cmin +60 -exec rm
\{} \; > /
dev/null 2>&1
On 7/24/05, Pat Maddox <pergesu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''ve noticed since I''ve been developing Rails apps that
the session
> files in /tmp never get deleted, they just build up forever until I
> manually delete them. While searching for something else yesterday, I
> found an article where the guy mentioned that, but I didn''t save
it.
> Does anyone have any info on how to prevent these session files from
> building up so much? Thanks
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
"Force Feedback Computing Since 1984"
http://www.modelm.org
http://www.clubpacswestmi.net/ronsweeney/
http://www.clubpacswestmi.net