Blog

Tuesday 06 July 2010 | 2 comments

Deleting Old Ruby on Rails Active Record Sessions Using Whenever and Capistrano

If you’re using the Rails Active Record session store, you’ll notice that it does not delete old sessions. I’ve found this can quickly lead to sessions tables bloated with 100,000 records. I found a good solution on a blog for this, but it required some extra work to get this running with the whenever gem in my... More