Closed 2called-chaos closed 9 years ago
config.cache_store = :mem_cache_store
That seems unusual. With the Dalli memcache library, it's conventional to use
config.cache_store = :dalli_store
It's probably simple change (and performance win) to use :dalli_store
in your app. :mem_cache_store
is untested with Rack::Attack. If you'd like to add support, I'd welcome a PR. But try :dalli_store
first. :smile:
Thank you very much, it was indeed that setting. Curiously the app refused to start without dalli even though :mem_cache_store
was given.
I think I'm missing something important. On our staging server (default cache) rack attack is working properly as well as in development. In production however we use the "mem_cache_store" via dalli.
We use the
cache
method in our views a lot and from that I can tell that caching is performed and persistent. Rack attack however doesn't work (none of the rules). The Fail2Ban rule does block the request but does not ban the IP.This is our environment:
Any ideas what I may have missed here?