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

Rack::Cache quickly fills up entitystore with old content #72

Open
mperham opened this issue Aug 12, 2012 · 1 comment
Open

Rack::Cache quickly fills up entitystore with old content #72

mperham opened this issue Aug 12, 2012 · 1 comment

Comments

@mperham
Copy link
Contributor

mperham commented Aug 12, 2012

We're using redis-rack-cache for our store. We found that our Redis install was quickly taking all available memory, even though our pages are Cache-Control: public, max-age=180.

What I discovered is that rack-cache.use_native_ttl is not documented and not enabled by default; the Redis driver sets the content with no expiration at all meaning Redis will keep it around forever.

  1. Could you document this flag? I was going off of this page: http://rtomayko.github.com/rack-cache/configuration
  2. Does it make sense to enable this flag by default so it doesn't happen to others?
@mperham
Copy link
Contributor Author

mperham commented Aug 12, 2012

It looks like MetaStore doesn't support native TTL at all so Redis will eventually fill up with cruft anyways.

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

No branches or pull requests

1 participant