PERF: push reindex job to daily

This commit is contained in:
Sam
2014-07-01 10:09:55 +10:00
parent 20074a3140
commit 760e9a756d
3 changed files with 11 additions and 1 deletions

View File

@ -49,6 +49,7 @@ class Search
)', SiteSetting.default_locale).limit(10000)
posts.each do |post|
# force indexing
post.cooked += " "
SearchObserver.index(post)
end