Introduction
In a production environment there are some routine maintenance tasks that will need to be done.
We have a rake task set up to handle these maintenance issues that can be called by running
rake substruct:maintain
This does certain things like expire old Sessions, so you might want to run it hourly.
You can do this by calling the rake task via cron. Adding this to your crontab will do just that.
10 * * * * cd [PATH TO YOUR APP HERE]; env rake substruct:maintain RAILS_ENV=production >> /dev/null 2>&1