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

cache.invalidate(key) doesn't remove corresponded etag records #283

Open
seekerk opened this issue Oct 9, 2024 · 1 comment
Open

cache.invalidate(key) doesn't remove corresponded etag records #283

seekerk opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@seekerk
Copy link

seekerk commented Oct 9, 2024

When I add CacheEtagMiddleware middleware into fastapi project cashews creates two records in redis database on GET request: one with key and one with etag. When I try to invalidate cache on POST request by using cache.invalidate(key) the cashews removes only one record. The record with fastapi::etag:... continues to be stored in redis and next GET request returns invalide (old) data.

@Krukov Krukov self-assigned this Oct 10, 2024
@Krukov
Copy link
Owner

Krukov commented Oct 10, 2024

@seekerk thanks for reporting this issue. Sure it's a bug.

@Krukov Krukov added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants