Skip to content

Commit

Permalink
Cache allowlist et al in analytics.rb
Browse files Browse the repository at this point in the history
config_for doesn't cache (!)
  • Loading branch information
duncanjbrown committed Jun 24, 2022
1 parent 48cd890 commit 11f895f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dfe/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ def self.enabled?
end

def self.allowlist
Rails.application.config_for(:analytics)
@allowlist ||= Rails.application.config_for(:analytics)
end

def self.allowlist_pii
Rails.application.config_for(:analytics_pii)
@allowlist_pii ||= Rails.application.config_for(:analytics_pii)
end

def self.blocklist
Rails.application.config_for(:analytics_blocklist)
@blocklist ||= Rails.application.config_for(:analytics_blocklist)
end

def self.environment
Expand Down

0 comments on commit 11f895f

Please sign in to comment.