enable caching for missed search report

This commit is contained in:
r888888888
2016-02-02 16:28:22 -08:00
parent fe4cb7f3ba
commit 00a589815f

View File

@@ -5,7 +5,7 @@ class MissedSearchService
end
def fetch_data
# Cache.get("ms", 1.minute) do
Cache.get("ms", 1.minute) do
url = URI.parse("#{Danbooru.config.report_server}/missed_searches")
response = ""
Net::HTTP.start(url.host, url.port, :use_ssl => url.is_a?(URI::HTTPS)) do |http|
@@ -17,6 +17,6 @@ class MissedSearchService
end
end
response
# end
end
end
end