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

Smarter cache invalidation #31

Open
jpodwys opened this issue Feb 22, 2016 · 2 comments
Open

Smarter cache invalidation #31

jpodwys opened this issue Feb 22, 2016 · 2 comments

Comments

@jpodwys
Copy link
Owner

jpodwys commented Feb 22, 2016

Let's say I have a basic CRUD journal site--I can create an entry, edit/delete an entry, view an entry, and view a list of entries. Cache invalidation works great when I delete or update an entry. However, there is no way to automatically tell the entry list cache key to invalidate when a CRUD action happens to a single entry.

I need to add some way of associating keys so that when a single entry, for example, is modified, the cache key for the entry list is invalidated.

@jpodwys
Copy link
Owner Author

jpodwys commented Jun 7, 2016

I think I can accomplish this by allowing users to add a prefix to the generated cache key via a chainable. However, this requires updates to all cache modules to handle deletions of keys that start with a given string.

@jpodwys
Copy link
Owner Author

jpodwys commented Oct 9, 2016

It also assumes the cache modules can do wild-card deletions efficiently.

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

No branches or pull requests

1 participant