Skip to content

Commit

Permalink
don't force cache misses
Browse files Browse the repository at this point in the history
0c79506 included a leftover of local testing: disabling the rails
caching for load_distributions which caused poor performance
  • Loading branch information
agraul committed Jul 4, 2018
1 parent 45b0499 commit 35794f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/obs_controller.rb
Expand Up @@ -8,9 +8,7 @@ class OBSController < ApplicationController
before_action :set_releases_parameters

def set_distributions
@distributions = Rails.cache.fetch('distributions',
expires_in: 120.minutes,
force: true) do
@distributions = Rails.cache.fetch('distributions', expires_in: 120.minutes) do
load_distributions
end
rescue OBSError
Expand Down

0 comments on commit 35794f4

Please sign in to comment.