Opened 3 weeks ago

Closed 8 days ago

Last modified 8 days ago

#37129 closed Cleanup/optimization (fixed)

Cache docs incompletely characterize when culling happens

Reported by: Jacob Walls Owned by: VIZZARD-X
Component: Documentation Version: 6.0
Severity: Normal Keywords: cache
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

See forum post: the cache docs incompletely describe how expired entries are culled:

Instead, expired cache entries are culled each time add(), set(), or touch() is called.

"Each time" neglects the role of MAX_ENTRIES here. (You have to exceed MAX_ENTRIES before any culling is done.)

Change History (6)

comment:1 by Sarah Boyce, 3 weeks ago

Triage Stage: UnreviewedAccepted

Thank you!
For others, I believe this area of the docs is being discussed: https://docs.djangoproject.com/en/6.0/topics/cache/#database-caching:~:text=Unlike,called

comment:2 by VIZZARD-X, 2 weeks ago

Owner: set to VIZZARD-X
Status: newassigned

comment:3 by VIZZARD-X, 8 days ago

Has patch: set

comment:4 by Jacob Walls, 8 days ago

Triage Stage: AcceptedReady for checkin

comment:5 by Jacob Walls <jacobtylerwalls@…>, 8 days ago

Resolution: fixed
Status: assignedclosed

In 1d71448:

Fixed #37129 -- Clarified database cache culling behavior in docs.

comment:6 by Jacob Walls <jacobtylerwalls@…>, 8 days ago

In d45fc0a:

[6.1.x] Fixed #37129 -- Clarified database cache culling behavior in docs.

Backport of 1d714484f67777e586fbea49ec743a7e39cba50f from main.

Note: See TracTickets for help on using tickets.
Back to Top