Skip to content

Improve flush-list search by avoiding skipping too many cache-keys. #120

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

Closed

Conversation

EnTeQuAk
Copy link

@EnTeQuAk EnTeQuAk commented Jun 14, 2016

As we're using new_keys to build up flush_keys and search_keys
we still might need the proper keys in obj_keys to avoid objects
not being invalidated properly.

There are some tests missing currently unfortunately but even without the patch the test-suite is failing for me locally so it's quite hard to reason about any particular changes. This should be straight forward enough though.

Let me know what you think :)

As we're using `new_keys` to build up `flush_keys` and `search_keys`
we still might need the proper keys in `obj_keys` to avoid objects
not being invalidated properly.
@EnTeQuAk
Copy link
Author

This essentially replaces #106

@coveralls
Copy link

coveralls commented Jun 14, 2016

Coverage Status

Coverage remained the same at 93.629% when pulling b042da9 on EnTeQuAk:bugfix/key-expansion into b94ec75 on django-cache-machine:master.

@tobiasmcnulty
Copy link
Member

Hi @EnTeQuAk , my apologies for the delay on this. Is this still something you're interested in getting in? If so, could you rebase this onto master and add a test for the issue? The test suite should be passing now; if it's not for you, please let me know and I'll see what I can do to help.

@EnTeQuAk
Copy link
Author

Seeing this project being active again is nice! I'll try to remember what I did and add some tests throughout this week, thanks for the follow-up!

@tobiasmcnulty
Copy link
Member

Sounds good, thanks!

@dratchkov
Copy link

I looked at the change here vs what's in #106. I don't think this one is correct - should a flush key be hit twice, then it will end up in both the obj_keys and flush_keys. I think hitting the same flush key second time should result in a NOP, i.e. I did that by having a separate check:

if key in flush_keys:
continue

@tobiasmcnulty
Copy link
Member

Closing in favor of #127

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.

4 participants