Skip to content

Commit

Permalink
Don't default to a memory store cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 25, 2023
1 parent 553f173 commit 06b9834
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/rack/attack/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class Cache
def self.default_store
if Object.const_defined?(:Rails) && Rails.singleton_class.method_defined?(:cache)
::Rails.cache
else
ActiveSupport::Cache::MemoryStore.new
end
end

Expand Down

0 comments on commit 06b9834

Please sign in to comment.