How are you guys approaching these two tasks? (i'm using activerecord session storage)
cheers!
CGI::Session::ActiveRecordStore::Session.delete_all ["updated_at < ?", 2.weeks.ago.to_s(:db)]
So in crontab 23 3 */14 * * /usr/local/bin/ruby /home/usrname/path/to/script/runner -e production "CGI::Session::ActiveRecordStore::Session.delete_all [\"updated_at < ?\", 2.weeks.ago.to_s(:db)]"
for rotating logs add the following to your environment.rb to keep, for example, 100 logfiles of 1MB each.config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 100, 1048576)