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

Fix reset! when using namespaced cache store #673

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

santib
Copy link
Collaborator

@santib santib commented Nov 4, 2024

Closes #672

Sending a regex doesn't work with some cache stores (e.g. ActiveSupport::Cache::RedisCacheStore).

Seems like some cache stores need it to be a regex, and some others need it to be a string. This inconsistency lives in Rails itself. Maybe it's required to unify the API provided by Rails.

Another option would be making use of our proxies to handle this difference.

@santib santib force-pushed the fix-cache-with-namespace branch 2 times, most recently from cf62482 to 74517c3 Compare November 4, 2024 16:43
@santib santib force-pushed the fix-cache-with-namespace branch from 8a150d1 to c939eda Compare December 15, 2024 19:02
@santib santib force-pushed the fix-cache-with-namespace branch from c939eda to 6405834 Compare December 15, 2024 19:07
@santib santib requested a review from grzuy December 15, 2024 19:13
@santib santib merged commit 86650c4 into rack:main Dec 20, 2024
122 checks passed
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

Successfully merging this pull request may close these issues.

Issue with reset! method and MemoryStore Cache
2 participants