Skip to content

Commit

Permalink
refresh cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kortirso committed Apr 17, 2024
1 parent f56453e commit b8c2441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/draft_players_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def show; end

def find_seasons
@seasons =
Rails.cache.fetch('draft_players_show_seasons_v3', expires_in: 4.hours, race_condition_ttl: 10.seconds) do
Rails.cache.fetch('draft_players_show_seasons_v4', expires_in: 4.hours, race_condition_ttl: 10.seconds) do
Season.in_progress.or(Season.coming)
.joins(:league)
.hashable_pluck(:id, :uuid, :start_at, :name, :updated_at, 'leagues.slug', 'leagues.sport_kind')
Expand Down

0 comments on commit b8c2441

Please sign in to comment.