discourse/app/jobs/scheduled/reindex_search.rb

11 lines
223 B
Ruby
Raw Normal View History

2014-06-30 20:09:55 -04:00
module Jobs
# if locale changes or search algorithm changes we may want to reindex stuff
class ReindexSearch < Jobs::Scheduled
every 1.day
def execute(args)
Search.rebuild_problem_posts
end
end
end