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

Caching never expires #82

Open
PascalVanVlaenderen opened this issue Apr 11, 2024 · 1 comment
Open

Caching never expires #82

PascalVanVlaenderen opened this issue Apr 11, 2024 · 1 comment

Comments

@PascalVanVlaenderen
Copy link

Hi all,

We've been happy customers of CacheCrispies and have been using do_caching true on some models.

However now we've noticed that these models are never expired, our Redis cache keeps on growing.

I read the code and the docs just specify use X as caching method.

What's the advice on ensuring the CacheCrispies models are expired without setting a default expiration on the full Rails cache?

@PascalVanVlaenderen
Copy link
Author

Currently using


CacheCrispies.configure do |config|
  config.etags = false
  config.cache_store = ActiveSupport::Cache::RedisCacheStore.new(url: ENV.fetch("REDIS_URL"), expires_in: 1.hour)
end

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