-
Notifications
You must be signed in to change notification settings - Fork 44
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
Missing expire/TTL on Redis keys #131
Comments
Hi! Thanks for the issue and the research! However, Tags Bundle only reuses configuration from eZ Platform/Ibexa kernel and does not control cache pool at all. So any changes to default config should be done on eZ repos, not here. I hope this makes sense to you? |
Thanks for the quick reply. Your description would be the expected behaviour but we're experiencing something else.
It seems to me that eZ-keys (prefixed with
Though I haven't dived into your code enough to point out any bugs yet. |
It might be that eZ made some modifications to their caching layer since the last time anyone touched the cache layer here in Tags Bundle. That seems to me the most reasonable asumption. If you have time, it would be appreciated if you can look into it. I will try to find some time too. |
Absolutely, I'll try to find some time in the following days. |
When inspecting Redis keys from this bundle they're missing expiration/TTL:
To avoid maxing out Redis memory with the "volatile-lru" eviction strategy one can define a "default_lifetime" in
app/config/cache_pool/cache.redis.yml
.volatile-lru states that:
Expected behaviour would be that cache items are given a TTL when defined in Symfony.
Would be great to have some feedback on this. We could possibly provide a PR.
The text was updated successfully, but these errors were encountered: