eliminate month scale for popular searches (takes up too much space in redis)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class IntroPresenter
|
||||
def each
|
||||
PopularSearchService.new(Date.today, "month").each_search(20) do |query, count|
|
||||
PopularSearchService.new(Date.today).each_search(20) do |query, count|
|
||||
yield(query, PostSets::Intro.new(query))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,7 +33,7 @@ module PostSetPresenters
|
||||
|
||||
def popular_tags
|
||||
if PopularSearchService.enabled?
|
||||
PopularSearchService.new(Date.today, "day").tags.slice(0, 25)
|
||||
PopularSearchService.new(Date.today).tags.slice(0, 25)
|
||||
else
|
||||
Tag.trending
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user