Closed mixellent closed 9 years ago
It appears that the DaliStore cache object is not API compatible with the Rails caching layer. If you look at ActiveSupport::Cache::Store it defines logger accessor methods at the class level. Whatever object is assigned to be the ::Rails.cache needs to support these accessor methods.
I would open an issue on the dali gem instead.
Just FYI, I submitted a pull request to Dalli to fix this issue. Mike just accepted, so this should no longer be an issue.
I got the following error when I try to run rails after having added the dalli gem (which is a popular gem for performing Caching on rails apps - https://github.com/mperham/dalli).
I checked and saw that it has something to do with the lib/logging/rails/ railtie.rb file:
And here is what the dalli gem is doing with regards to logging:
So I basically tried to remove the cache initializer inside your gem, on my fork, but I was unable to get the fork working on my rails app, since logging-rails doesn't have a .gemspec.
Could you maybe point out to a solution (if any is actually possible on your side?)
Thanks