Skip to content

Commit

Permalink
remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jan 17, 2025
1 parent a0403f6 commit 075fed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/analytics/dashboards_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def yearly_talks
end

def top_referrers
@top_referrers = Rails.cache.fetch("top_referrers_2", expires_at: Time.current + 2.seconds) do
@top_referrers = Rails.cache.fetch("top_referrers", expires_at: Time.current.end_of_day) do
Ahoy::Visit
.where("date(started_at) BETWEEN ? AND ?", 60.days.ago.to_date, Date.yesterday)
.where.not(referring_domain: [nil, "", "rubyvideo.dev", "www.rubyvideo.dev"])
Expand Down

0 comments on commit 075fed2

Please sign in to comment.