Skip to content
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

Add expiration times for caching #338

Open
rafamanzo opened this issue Apr 14, 2016 · 1 comment
Open

Add expiration times for caching #338

rafamanzo opened this issue Apr 14, 2016 · 1 comment

Comments

@rafamanzo
Copy link
Member

Currently we are relying on the engine (memcached at mezuro.org) to expire our cache for example at the home#index. This can lead to undefined behaviour and code harder to developers understand.

We should set the expiration options accordingly: http://guides.rubyonrails.org/caching_with_rails.html

@danielkza
Copy link
Contributor

I think it's fine to rely on Memcached expiring keys, as it's part of what it's expected to do, but we just need to make sure we have the same behavior on other environments to avoid surprising differences. That might just mean configuring the cache in the development/test environment, or using explicit timeouts on some things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants