1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #28977 -- Changed local-memory cache to use LRU culling.

LRU culling turns every read into a kind of write to the cache: cache keys
are moved to the first position in the OrderedDict when they are retrieved.
The RWLock which permitted multiple readers while prioritizing a single
writer is obsolete since all accesses are now writes.
This commit is contained in:
Grant Jenks
2018-01-24 09:26:19 -08:00
committed by Tim Graham
parent f9844f4841
commit d38a3169a4
6 changed files with 94 additions and 147 deletions

View File

@@ -108,7 +108,8 @@ Minor features
Cache
~~~~~
* ...
* The :ref:`local-memory cache backend <local-memory-caching>` now uses a
least-recently-used (LRU) culling strategy rather than a pseudo-random one.
CSRF
~~~~