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

Purge multiple keys, AND / OR #215

Open
jasonbahl opened this issue Jul 7, 2023 · 1 comment
Open

Purge multiple keys, AND / OR #215

jasonbahl opened this issue Jul 7, 2023 · 1 comment

Comments

@jasonbahl
Copy link

jasonbahl commented Jul 7, 2023

question / feature request:

I would like to be able to pass an array of keys to purge and only purge documents that have all of the keys

for example, if I call purge( 'a, b, c' ), this will purge documents tagged with a, OR, b, OR c.

Is it possible to only purge documents tagged with a AND b AND c?

@gquintard
Copy link
Collaborator

this should be possible, but would be a bit hacky. We could add an extra check to make sure an object has all the tags. It's not pretty and would lead to some extra work but that's probably easier than overhaul the whole storage struct.

the vmod is technically in maintenance, but if you find a good soul to open a PR, I'll happily look at it.

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

2 participants