Skip to content

Commit

Permalink
Run the indexer when Cron decides to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Jul 22, 2011
1 parent b37f806 commit fe51776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Expand Up @@ -21,3 +21,6 @@ desc "Deletes the classified ads that are over 30 days old"
task :purge_outdated_classifieds => :environment do
Classified.purge_outdated!
end

desc 'Have cron index the Sphinx search indices'
task :cron => 'fs:index'

0 comments on commit fe51776

Please sign in to comment.