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

Added note about culling in database cache backend docs. #13259

Merged
merged 1 commit into from
May 20, 2021

Conversation

mlissner
Copy link
Contributor

I was quite confused how the DB cache was able to cull expired cache entries, asked on IRC and received this response. I think it'd be good to include this because others like me might be concerned that the timeout totally doesn't work on some backends. It does, of course (django is wonderful), and the implementation is clever enough to note.

Base automatically changed from master to main March 9, 2021 06:21
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlissner Thanks for this patch 👍 and sorry for the late reply.

docs/topics/cache.txt Outdated Show resolved Hide resolved
@felixxm felixxm changed the title More detail on cache timeout implementation Added note about culling in database cache backend docs. May 19, 2021
@felixxm felixxm self-assigned this May 19, 2021
@mlissner
Copy link
Contributor Author

This should be ready for a second review.

docs/topics/cache.txt Outdated Show resolved Hide resolved
@mlissner
Copy link
Contributor Author

OK, I think this is ready for a third review. Thanks for the correction. How wrong I was!

@mlissner
Copy link
Contributor Author

(I noticed a performance issue while looking at this code and opened a ticket: https://code.djangoproject.com/ticket/32772.)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
@felixxm felixxm merged commit 6e155d2 into django:main May 20, 2021
@mlissner mlissner deleted the patch-5 branch May 20, 2021 05:46
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.

3 participants