Add one or more of them to your crontab file, and this should do it for you ...
rake tmp:cache:clear
rake tmp:clear
rake tmp:create
rake tmp:sessions:clear
rake tmp:sockets:clear
Keep in mind that cleanup sessions will kill all active sessions. I do not recommend. You can create a model with the name:
- :
def self.run
CGI::Session::ActiveRecordStore::Session.
destroy_all( ['updated_at <?', 48.hours.ago] )
end
cron script/runner,
script/runner -e production Periodic.run