-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache doesn't clean for distributed system #182
Comments
@vitalinfo how did you solve your issue? |
Same problem here. @huacnlee is it possible to change the caching place? Or to disable it ? Monkey Patch module RailsSettings
class RequestCache
class << self
def reset
Rails.cache.write('foo', nil)
end
def settings
Rails.cache.read('foo')
end
def settings=(val)
Rails.cache.write('foo', val)
end
end
end
end |
My workaround is that |
Hi, all I just create a Issue #219 I will try to fix this problem. |
RequestCache it avoid Redis I/O, when on page have multiple setting keys wants to read. |
For now, you can call |
@huacnlee what was the case to use that in real environment? |
version 2.8.0 fixed this. |
@rhombl4 sorry for the later answer, I've resolved it with https://github.com/madebylotus/request_store-sidekiq |
@vitalinfo For now, you not need it. |
I have a few web-servers and a few sidekiq worksers and use Redis store as a primary cache.
If update any setting from the one web-server application, it doesn't update on another instances, because of
RequestStore
local cache.Doesn't it make any sense to use
RequestStore
? Why just not useRails.cache
as a one source of thrust?The text was updated successfully, but these errors were encountered: