# reindex the database
every 1.day, :at => '3:30 am' do
  rake "thinking_sphinx:index"
end

# recreate the sitemap
every 1.day, :at => '4:30 am' do
  rake "sitemap:refresh"
end
# reindex the database
every 1.day, :at => '3:30 am' do
  rake "thinking_sphinx:rebuild"
end

# recreate the sitemap
every 1.day, :at => '4:30 am' do
  rake "sitemap:refresh"
end
Rebuild instead of just reindex every night
Rebuild instead of just reindex every night