fix for popular search service

This commit is contained in:
r888888888
2018-10-20 20:00:47 -07:00
parent 7051351852
commit 4ec92d3aa0

View File

@@ -38,7 +38,7 @@ class PopularSearchService
response
end.to_s.force_encoding("utf-8")
if data.blank?
if data.blank? || data == "[]"
dates = date.yesterday.strftime("%Y-%m-%d")
data = Cache.get("ps-day-#{dates}", 1.minute) do